select a.count1,b.count2,c.count3 from
(select count(*) count1 from tablename where sysdate < datecol + 3) a,
(select count(*) count1 from tablename where sysdate >= datecol + 3 and sysdate < datecol +5) b,
(select count(*) count1 from tablename where sysdate >= datecol + 5) c;
(select count(*) count1 from tablename where sysdate < datecol + 3) a,
(select count(*) count1 from tablename where sysdate >= datecol + 3 and sysdate < datecol +5) b,
(select count(*) count1 from tablename where sysdate >= datecol + 5) c;
解决方案 »
- Oracle查询语句
- ORACLE存储过程怎么建,,,,,在线急等
- 用一个脚本同时给两个表中插入数据时遇到的问题
- (面试题)一个数据库方面的题目
- 关于Oracle中用连接建视图,急等.
- 请问怎么解决oracle的负载均衡问题
- 请教:在创建表分区的时候,“无法为表空间中的段创建initial区”如何解决?
- 请问:在win2000下,怎样改变DBA Studio中日期字段的显示格式
- 超级菜的问题,,,在oracle中用apps用户登录pl/sql developer 的问题
- 今天是周末啊,这么小的问题,不要在折磨我了啊,HELP!!!在线等!!!
- 我恢复了一个数据库,为什么触发器不起作用了,我重编,什么都是好的,为什么??
- 关于oracle9i与Tomcat相结合运用的问题!!!!
select a.count1,b.count2,c.count3 from
(select count(*) count1 from tablename where sysdate < datecol + 3) a,
(select count(*) count2 from tablename where sysdate >= datecol + 3 and sysdate < datecol +5) b,
(select count(*) count3 from tablename where sysdate >= datecol + 5) c;
比较麻烦:)