How to use rownum [duplicate]
问题 This question already has answers here : How to get second largest or third largest entry from a table (12 answers) SELECTing top N rows without ROWNUM? (5 answers) Closed 6 years ago . I have a employee table in oracle with name,salary and other details. I am trying to get the second highest salary but not able to fetch. This one working fine with e_salary as (select distinct salary from employee) select salary from e_salary order by salary desc And gives output: 450000 61000 60000 50000