Bernandas Savarimuthu
SQL & PL/SQL Colletions
Tuesday, February 17, 2009
Second Largest Number
SELECT empno FROM (SELECT e.empno, RANK() over (ORDER BY e.empno DESC) rk FROM emp e ) WHERE rk = 2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment