日期:2014-05-17  浏览次数:20540 次

求一条简单sql,大家帮我写下。
分组统计,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 表