The DENSE_RANK function works acts like the RANK function except that it assigns consecutive ranks:
Select empno, ename, Sal, from (select empno, ename, sal, dense_rank () over (order by sal desc) r from emp);Saturday, June 18, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment