SQL/MX 3.1 Reference Manual (H06.23+, J06.12+)

SQL/MX Functions and Expressions
HP NonStop SQL/MX Release 3.1 Reference Manual663850-001
9-124
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.