Getting FIRST 10 rows with a descending query
I need to get the "last 10" rows, basically, from a table.
If I do
SELECT *
FROM emp
WHERE ROWNUM < 10
ORDER BY emp_no DESC
Oracle gets the rownum first, then sorts the first 10 in
descending order.
Is there a way to get the last X rows?
Thanks,
Lorrie Gagnon
lorrie_gagnon@hp.com