分组统计,a列大于10,b列大于20,c列大于30的数据。
谢谢。
分组统计
------解决方案--------------------
select
count(case when a>10 then 1 else null end),
count(case when b>20 then 1 else null end),
count(case when c>30 then 1 else null end)
from 表