表结构如下:
create table test11
(
   id number(12),
   name varchar(20),
   charge number(12),
   begin_date date
)表中有原始数据3条,如下:
id      name   charge    begin_date
101 aa 10 2012/7/15 1:00:00
102 bb 10 2012/7/16 1:00:00
103 cc 10 2012/7/17 13:00:00要求如下:
获取表中的总记录数,求出charge的总和,begin_date显示其中最早的一条,也就是最后我想得到下面这样一条记录select count(1),sum(charge),begin_date from test11 where ......
结果为: 3       30         2012/7/15 1:00:00这样的SQL语句要怎样写啊,可以实现吗?谢谢了~~