select _date,sum(amount) from table group by trunc(_date,'dd');
SQL code:
select to_char(日期,'yyyy-mm-dd'),sum(1) from 表名 where 日期 between to_date(trunc(sysdate,'mm')) and add_months(to_date(trunc(sysdate,'mm')),1)-1/24/3600 group by to_char(日期,'yyyy-mm-dd'),;
up! select to_char(日期,'yyyy-mm-dd'),sum(1) from 表名 where 日期 between to_date(trunc(sysdate,'mm')) and add_months(to_date(trunc(sysdate,'mm')),1)-1/24/3600 group by to_char(日期,'yyyy-mm-dd');
下个Oracle for vista 版本的安装试试 10G和11G的 http://www.oracle.com/technology/software/products/database/index.html ------------------------------------------- ......