当前位置: 代码迷 >> Sql Server >> 求一条简单sql,大家帮小弟我写下
  详细解决方案

求一条简单sql,大家帮小弟我写下

热度:22   发布时间:2016-04-24 21:36:47.0
求一条简单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 表
  相关解决方案