Oracle sql:通過GROUP BY ROLLUP排序- 優文庫 - uwenku
文章推薦指數: 80 %
問答
Oraclesql:通過GROUPBYROLLUP排序
Q
2017-02-07
85views
2likes
2
我正在尋找一個答案,但似乎沒有什麼比較我的問題。
因此,使用匯總與查詢:
selectyear,month,count(sale_id)fromsales
groupbyrollup(year,month);
延伸文章資訊
- 120 SQL for Aggregation in Data Warehouses - Oracle Help ...
ROLLUP takes as its argument an ordered list of grouping columns. First, it calculates the standa...
- 2ROLLUP, CUBE, GROUPING Functions and ... - ORACLE-BASE
ROLLUP. In addition to the regular aggregation results we expect from the GROUP BY clause, the RO...
- 3【ROLLUP】Oracle分組函式之ROLLUP魅力| 程式前沿
本文通過演示給出Oracle ROLLUP分組函式的用法,體驗一下Oracle在統計查詢領域中的函式魅力。ROLLUP分組函式可以理解為Group By分組 ...
- 4[轉]詳解Oracle高級分組函數(ROLLUP, CUBE, GROUPING ...
本文主要講解ROLLUP, CUBE, GROUPING SETS的主要用法,這些函數可以理解為GroupBy分組函數封裝後的精簡用法,相當於多個union all 的 ...
- 5Analyzing Data with ROLLUP, CUBE, AND TOP-N QUERIES
Oracle also provides optimized performance and simplified syntax for Top-N queries. ... ROLLUP is...