Top 3 ways to return TOP 10 rows by an SQL query
freedb2.com
freedb2.com
select * from ( SELECT column FROM table order by x ) WHERE ROWNUM <= 10
This will ensure all your ordering is done before the limiting bit of the query.
Here are more examples http://www.oracle.com/technology/oramag/oracle/06-sep/o56ask...