* To perform top-N processing. This is similar to using the LIMIT clause, available in some other databases.
select ** To paginate through a query, typically in a stateless environment such as the Web.
from
(select *
from t
order by unindexed_column)
where ROWNUM < :N;
select *"
from ( select /*+ FIRST_ROWS(n) */
a.*, ROWNUM rnum
from ( your_query_goes_here,
with order by ) a
where ROWNUM <=
:MAX_ROW_TO_FETCH )
where rnum >= :MIN_ROW_TO_FETCH;