SQL> select * from (select employees.*,dense_rank() over (order by salary) rank from employees) 2 where rank=5;