[Oracle] WINDOW FUNCTION 윈도우 함수
WINDOW FUNCTION -- 윈도우 함수에는 OVER 문구가 필수 포함된다. SELECT * FROM SCOTT.EMP; SELECT * FROM SCOTT.DEPT; 그룹 내 순위 함수 1. RANK – 순위 구하기 SELECT JOB, ENAME, SAL, RANK() OVER (ORDER BY SAL DESC) ALL_RANK, RANK() OVER (PARTITION BY JOB ORDER BY SAL DESC) JOB_RANK FROM EMP; SELECT JOB, ENAME, SAL, RANK() OVER (ORDER BY SAL DESC) ALL_RANK FROM EMP; SELECT JOB, ENAME, SAL, RANK() OVER (PARTITION BY JOB ORDER BY S..
2022. 6. 12.