Hi , I am trying to select the first 200 rows from a table with the primary key in sequential order.
Example
Select primary_key#
from table_name
where rownum <=200
order by 1
However, I have realised that rownum is dealt with first by oracle and then the order by clause distorts the result set.
Any help much appreciated on how I could accomplish this ?
I am using Oracle 9.2 but ideally this needs to work with Oracle 7.36 as well.