27,581
社区成员




select XX from tb group by XX --明细
union all
select case when XX = 1 then '一季度汇总'
when xx = 2 then ...
from tb group by 季度
union all
select sum()
from tb --全年汇总
select *
from
(
select XX from tb group by XX --明细
union all
select case when XX = 1 then '一季度汇总'
when xx = 2 then ...
from tb group by 季度
union all
select sum()
from tb --全年汇总
)
order by