I have the following SQL query:
select ID, COLUMN1, COLUMN2 from (select ID, COLUMN1, COLUMN2, row_number() over (order by 2 DESC) NO from A_TABLE) whe
Check out this Oracle FAQ. In particular this part:
SELECT * FROM (SELECT a.*, rownum RN FROM (SELECT * FROM t1 ORDER BY key_column) a WHERE rownum <=7) WHERE rn >=5