i've a little "big" issue with a query that use ROWNUM.
The query is:
SELECT * FROM (
SELECT b.* FROM BANANA b
ORDER BY b.CREATION_DATE DESC, b.TYPE DESC)
WHERE ROWNUM BETWEEN n AND m;
for n=0 and m=20 this query returns 20 elems (from ROWNUM 1 to 20)
but for n=10 and m=20 this query returns 0 rows.
Why? What's wrong with me and this query? Ty for your patient
PS: i want only 1 subquery.