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);
延伸文章資訊
- 1Script: GROUP BY ROLLUP Example - Oracle Live SQL
Script Name GROUP BY ROLLUP Example; Description This example calculates multiple levels of subto...
- 2Analyzing Data with ROLLUP, CUBE, AND TOP-N QUERIES
Oracle also provides optimized performance and simplified syntax for Top-N queries. ... ROLLUP is...
- 3[轉]詳解Oracle高級分組函數(ROLLUP, CUBE, GROUPING ...
本文主要講解ROLLUP, CUBE, GROUPING SETS的主要用法,這些函數可以理解為GroupBy分組函數封裝後的精簡用法,相當於多個union all 的 ...
- 4Oracle ROLLUP - Oracle Tutorial
Oracle ROLLUP syntax · First, calculate the standard aggregate values in the GROUP BY clause. · T...
- 5Oracle PL/SQL 的Group By Rollup 與Group By ... - 昭佑.天翔
在Oracle PL/SQL 中, 對於資料分析使用上, 最常用的莫過於Group By 用法, 現在介紹Group By 的另一層用法: Group By Rollup 與Group By C...