How to limit the number of records returned by an ORACLE query?
ORACLE
and
which way do you think is the best?
Add "where rownum <= # of entries" at the end of your query.