SQL/MX 3.2 Reference Manual (H06.25+, J06.14+)

SQL/MX Functions and Expressions
HP NonStop SQL/MX Release 3.2 Reference Manual691117-001
9-129
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.