SELECT a, b, c
FROM
( SELECT a, b, c, ROWNUM rn
FROM
( SELECT a, b, c FROM RECORD
WHERE AVAIL='Y"
ORDER BY DATE DESC
)
WHERE ROWNUM <= 25
)
WHERE rn >= 21;
This clunky code is the equivalent of mysql's elegant:
select a,b,c from record limit 5 offset 4;
Parm Patram
Oracle, Linux and UNIX tips, tricks and stuff





