求一按年龄段统计的SQL语句写法 在表中有个人信息,包括姓名性别,年龄等要求按年龄统计人口结构,请教怎么写如:0-7岁,8-14,...60岁以上各多少人 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(a),count(b),count(c) .. from ( select (case when age between 0 and 7 then t.id end) a, (case when age between 8 and 14 then t.id end) b, (case when age between 14 and 20 then t.id end) c, . . from user_tbl t ) oracle存储过程 oracle 视图问题 oracle sqlldr 报错 oracle -1461 是什么错误? sql统计的问题 急! 菜鸟郁闷的问题 如何批量插入一年中所有星期一的日期 介绍大家一个好去处!!!!!! Oracle中查询后结果集的排序问题 oracle 10g 无法登录的问题,高手请进来看看啊!! 在使用查询语句时,得到提示信息result set exceeds the maximum size
(
select (case when age between 0 and 7 then t.id end) a,
(case when age between 8 and 14 then t.id end) b,
(case when age between 14 and 20 then t.id end) c,
.
.
from user_tbl t
)