问题描述
解决方案
select extension_idsum(report_type0) asum(report_type1) b from (select extension_idcase when report_type=1 then cnt else 0 end report_type1case when report_type=0 then cnt else 0 end report_type0 from(select count(*) cntextension_idreport_type from eatable group by extension_idreport_type) a) a group by extension_id
时间: 2024-10-18 06:29:06