View Single Post
  #4 (permalink)  
Old 12-05-2007, 03:54 AM
deepak garg deepak garg is offline
Junior Member
 
Join Date: Dec 2007
Posts: 6
deepak garg is on a distinguished road
Lightbulb ANY answer. Re: how to find out the 4th highest value from the column?

You can calculate the 2,3,4 or the whichever highest value of a column you want to retrive:


[sql]select min(sal) from (select sal from emp where sal is not NULL order by sal desc) where rownum<=&rownum;[/sql]
Reply With Quote