Skip to content

Commit c081658

Browse files
committed
topn
1 parent 950b8c4 commit c081658

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

optimizer/topn/eg1.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
ELECT deptno, job, APPROX_SUM(sal),
1+
connect scott/tiger
2+
3+
SELECT deptno, job, APPROX_SUM(sal),
24
APPROX_RANK(partition by deptno ORDER BY APPROX_SUM(sal) desc) rk
35
FROM emp
46
GROUP BY deptno, job

0 commit comments

Comments
 (0)