Prøv dette for at hente de øverste N poster fra en forespørgsel. Du kan bruge følgende syntaks::-
SELECT *
FROM (your ordered query) alias_name
WHERE rownum <= Rows_to_return
Eksempel:-
SELECT *
FROM (select * from suppliers ORDER BY supplier_name) suppliers2
WHERE rownum <= 3