Do anyone know 2 find nth max or min
Supposing u have a table name Emp where u store all the employee info.
U need to find out the person who gets 5th maximum salary
How 2 do this without using subqueries, because i am using older version which does not supports subqueries?
FYI the implementation of nth max or min using sub query is
*****************
select a.name from emp a where &n=(select count(distinct sal) from emp b where a.sal>b.sal;
*****************
plz tell me the equivalent query
Subject
Written By
Posted
Do anyone know 2 find nth max or min
August 12, 2004 06:01AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.