Why does the following query return \'zero\' records:
SELECT * FROM records WHERE rownum >= 5 AND rownum <= 10 OR SELECT * FROM records WHERE rownum >=
Alternative is to use MINUS
MINUS
SELECT * FROM records WHERE ROWNUM <= 10 minus SELECT * FROM records WHERE ROWNUM <= 5
this will filter out non-unique values so you better be selecting id.
Hope this saves you some time.