There was an error while loading. Please reload this page.
1 parent 950b8c4 commit c081658Copy full SHA for c081658
optimizer/topn/eg1.sql
@@ -1,4 +1,6 @@
1
-ELECT deptno, job, APPROX_SUM(sal),
+connect scott/tiger
2
+
3
+SELECT deptno, job, APPROX_SUM(sal),
4
APPROX_RANK(partition by deptno ORDER BY APPROX_SUM(sal) desc) rk
5
FROM emp
6
GROUP BY deptno, job
0 commit comments