用一句select完成各年龄段人数的统计以及多条select语句查询结果的统计
--分类统计各年龄段人数
select count(a) ,count(b),count(c),count(d),count(e),count(f),count(g) from
(
select
(case when age <50 then t.oid end) a,
(case when age between 50 and 60 then t.oid end) b,
(case
原创
2014-03-18 12:13:56 ·
2037 阅读 ·
0 评论