以前面试没有理解到它什么意思的一道题,回忆中是这个题意
select count(1),
to_char(r.datelastmaint, 'yyyy-mm-dd hh24:mi'),
sum(abs(r.tranamt))
from deprtxn r
group by to_char(r.datelastmaint, 'yyyy-mm-dd hh24:mi');
以前面试没有理解到它什么意思的一道题,回忆中是这个题意
select count(1),
to_char(r.datelastmaint, 'yyyy-mm-dd hh24:mi'),
sum(abs(r.tranamt))
from deprtxn r
group by to_char(r.datelastmaint, 'yyyy-mm-dd hh24:mi');