Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

finding nth highest salary

RaunaqMay 5 2015 — edited May 5 2015

Hi guys , I am trying to find the nth highest salary

using the below query , is there any case in which the below query can fail

 

select

* from (

 

select

distinct rownum rn,salary from emp_mgr order by rownum) t where t.rn=3

;

This post has been answered by Raunaq on May 5 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2015
Added on May 5 2015
14 comments
1,276 views