I am looking for an Oracle swap request on the network, and most of them told me to execute the request twice:
SELECT *
FROM (SELECT t.*, ROWNUM rn
FROM tableName t
WHERE ROWNUM < 200)
WHERE rn > 100
Just wondering if I can type it like:
SELECT *, ROWNUM rn
FROM tableName t
WHERE ROWNUN BETWEEN 100 AND 200
It seems the second one works. Are there any (working) differences between the two queries?
source
share