select * from ( select first_name,
salary,
dense_rank() over (order by salary desc)r from emp)
where r = 3;
I tried above query with this I can get nth salary, but I want multiple 5th 6th and 7th highest salary in one query