34,590
社区成员
发帖
与我相关
我的任务
分享
select
n1=sum(case when flag='true' then 1 else 0 end),
n2=sum(case when department_name='第二组' then 1 else 0 end)
from
select distinct n1=(select count(*) from View_bidui_report_xh where flag='true' ),
n2=(select count(*) from View_bidui_report_xh where department_name='第二组')
from View_bidui_report_xh