I want to order records by last updated date in ascending order and then want to limit the records. When I am trying the below SQL query I got an error
ORA-00907: missing right parenthesis
Can someone help me to solve this issue?
SELECT
f.*
FROM
file_content f
WHERE
f.file_id IN (
SELECT
fc.file_id
FROM
file_content fc
ORDER BY
fc.last_updated_time ASC
)
AND ROWNUM <= 3;