How do I select only the first 10 results of a query?
I would like to display only the first 10 results from the following query:
SELECT a.names,
Oracle
WHERE ROWNUM <= 10 and whatever_else ;
ROWNUM is a magic variable which contains each row's sequence number 1..n.
ROWNUM