This is my query:
select *
from (SELECT "MYTABLE".* FROM "MYTABLE" ORDER BY "COMPANY" ASC, "SURNAME" ASC)
where ROWNUM between 0 and 20
Which works like expected, but when I try to fetch the next 20 Records with:
select *
from (SELECT "MYTABLE".* FROM "MYTABLE" ORDER BY "COMPANY" ASC, "SURNAME" ASC)
where ROWNUM between 20 and 40
The result-set is empty? Why is this and what can I do to get the next 20 records?