I usually just put the query into a subquery and apply the rownum outside of it. In your case:
select * from
(
select Last_Modified, Service_Name, Service_Type_ID, Service_Subtype, Service_Status_Code, Active_Date
from service_history
where to_date (Last_Modified) <= '20-aug-01' and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.