H
harmer
Unregistered / Unconfirmed
GUEST, unregistred user!
有三条记录.
time xj
08:00:30 10
08:50:00 20
09:00:00 15
统计出来的结果是
time xj
08 30
09 15
如何对整点时间段进行合并统计?
select xj,SUBSTRING (time FROM 1 FOR 2) AS FIRSTNAME from table
这样可以取出时间,可我还要合并统计。
select sum(xj),SUBSTRING (time FROM 1 FOR 2) AS FIRSTNAME from table group by SUBSTRING (time FROM 1 FOR 2)
这样却提示不支持,怎么办?我用paradox数据库
time xj
08:00:30 10
08:50:00 20
09:00:00 15
统计出来的结果是
time xj
08 30
09 15
如何对整点时间段进行合并统计?
select xj,SUBSTRING (time FROM 1 FOR 2) AS FIRSTNAME from table
这样可以取出时间,可我还要合并统计。
select sum(xj),SUBSTRING (time FROM 1 FOR 2) AS FIRSTNAME from table group by SUBSTRING (time FROM 1 FOR 2)
这样却提示不支持,怎么办?我用paradox数据库