oracle数据库中的面试题

select prod_id,substr(prod_date,5,2),round(sum(prod_amt)/10000,0) from temp_table group by cube(prod_id,substr(prod_date,5,2));

 

posted @ 2017-05-16 10:05  冷漠脸  阅读(177)  评论(0编辑  收藏  举报