replace n with any number.
Example : 2nd Highest,3rd highest......
SELECT * FROM emp E1 WHERE n = (SELECT COUNT(DISTINCT(E2.esal))FROM emp E2 WHERE E2.esal >= E1.esal)
Thursday, December 17, 2009
Subscribe to:
Post Comments (Atom)
Post U R doubts and questions on DotNet ... u can expect the immediate replies from me
No comments:
Post a Comment