SQL/MX 3.x Reference Manual (H06.22+, J06.11+)
SQL/MX Functions and Expressions
HP NonStop SQL/MX Reference Manual—640322-001
9-111
Examples of OFFSET
•
Retrieve the I1 column offset by three rows:
SELECT OFFSET (I1,3) AS OFFSET3
FROM mining.seqfcn
SEQUENCE BY TS;
OFFSET3
------------
?
?
?
6215
28174
--- 5 row(s) selected.
Note that the first three rows retrieved display null because the offset from the
current row does not fall within the result table.










