SELECT * FROM (select salary2.*, rownum rnum from (select * from salary ORDER BY salary_amount DESC) salary2 where rownum <= 2 ) WHERE rnum >= 2;