回答編集履歴
2
加筆
answer
CHANGED
@@ -1,2 +1,6 @@
|
|
1
1
|
ウィンドウ関数 rank() を使って <=5 に絞り込むと、1,2,3,4,5と上位5件ずつに絞り込める
|
2
|
-
[9.21. ウィンドウ関数](https://www.postgresql.jp/document/12/html/functions-window.html)
|
2
|
+
[9.21. ウィンドウ関数](https://www.postgresql.jp/document/12/html/functions-window.html)
|
3
|
+
[4.2.8. ウィンドウ関数呼び出し](https://www.postgresql.jp/document/12/html/sql-expressions.html#SYNTAX-WINDOW-FUNCTIONS)
|
4
|
+
|
5
|
+
rank() over (partition by 順位付けする区切り order by 区切った中での並び順)
|
6
|
+
みたいな使い方。
|
1
見直し
answer
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
ウィンドウ関数 rank() を使って
|
1
|
+
ウィンドウ関数 rank() を使って <=5 に絞り込むと、1,2,3,4,5と上位5件ずつに絞り込める
|
2
2
|
[9.21. ウィンドウ関数](https://www.postgresql.jp/document/12/html/functions-window.html)
|