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-153
Examples of RUNNINGMAX
Return the maximum of values of I1 up to and including the current row:
SELECT RUNNINGMAX (I1) AS MAX_I1
FROM mining.seqfcn
SEQUENCE BY TS;
MAX_I1
------------
6215
28174
28174
28174
28174
--- 5 row(s) selected.