590
社区成员
发帖
与我相关
我的任务
分享
select
year(t3.hxmonth) year,
sum(case when t3.area='ya' then 1 else 0 end ) as 云安 ,
sum(case when t3.area='ld' then 1 else 0 end ) as 罗定 ,
sum(case when t3.area='xx' then 1 else 0 end ) as 新兴
from ****** where 1=1
group by year(t3.hxmonth)
order by year