select date,count(*) from tbName
group by date
order by date;
group by date
order by date;
解决方案 »
- oracle 如何查表和存储过程的关联
- 对oracle数据库进行操作,如何查询sql语句查询到的数据条数
- 求MySQL单表存储突破4G方法
- 两表关联时的子集判断问题
- P/L SQL developer不支持中文查询吗?
- Blob对象的处理
- 安装oracle 9.2时提示我“C:\Documents and Settings\用户名\Local Settings\Temp\没有足够的磁盘空间,怎么回事?
- 怎样将库中方案下自带的SH, SCOTT, HR等删除, 并建一个新的类似它们的东西。
- 请问:startup(shutdown)的具体含义是什么?
- pl/sql,执行结果与运行sql结果不一样。是什么原因呢?谢谢
- 有没有oracle和EXCEL的高手?
- 无法登陆Oracle manager Server
(select (to_date('2005 04 01','yyyy mm dd') + rownum - 1) alldate from all_objects where rownum < 31) a,tbname b
where a.alldate = b.date(+)
group by a.alldate
select a.alldate,count(b.date) from
(select (to_date('2005 08 01','yyyy mm dd') + rownum - 1) alldate from all_objects where rownum < 32) a,tbname b
where a.alldate = b.date(+)
group by a.alldate