數據SQl分類彙總方法

select FullName=case when GROUPING(OfficeName)=0 then '' else FullName end, OfficeName=case when GROUPING(OfficeName)=0 then OfficeName else '' end, sum(AppCount) as SumCount from V_officeInfo where A
相關文章
相關標籤/搜索