Select year,month,area,sum(total_sale) from SaleOrder group by
year,
rollup(month,area) 另外Oracle 9i还支持如下语法:
Select year,month,area,sum(total_sale) from SaleOrder group by rollup((year,month),area)[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8591181/viewspace-899272/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/8591181/viewspace-899272/