The below query returns me large set of records. I only want to get 100000 as fast as possible in exactly that specific order. When i use where RowNum < 100000, the order gets messed up for obvious reasons.
How do I change the below query to return in the right orderby and only limit to get 100000 records. Please advise. Thanks
SELECT S.LOGIN_ID as LoginId, S.ProductId as ProductId, P.CREATE_DT as CreateDate,
FROM SITE_USER S
INNER JOIN Production P on P.LOGIN_ID = S.LOGIN_ID
where P.PROCESS_CD = 'REGISTRATION'
and P.CREATE_DT >= '20-JAN-21'
order by P.Request_id asc