Saturday 18 June 2011

How to find the Dense rank ?


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);

No comments:

Post a Comment