Oracle/SQL - Select specified range of sequential records
问题 I'm tryint to select a subset of records, 5000 through 10000 from a join. I've gotten queries like this to work in the past, but they were slightly less complex. Here is the query I'm trying to use and if I remove the rownum/rnum references (and therefore the outer select) I receive all my records as expected so I know that logic is good. SELECT * FROM ( SELECT unique cl.riid_, rownum as rnum FROM <table 1> cl, <table 3> mil WHERE cl.opt = 0 AND (cl.st_ != 'QT' OR cl.st_ IS NULL) AND cl.hh =