SEQUENCE BY TS;
COUNT_I1
------------
--- 5 row(s) selected.
RUNNINGMAX Function
The RUNNINGMAX function is a sequence function that returns the maximum of values of a
column up to and including the current row of an intermediate result table ordered by a
SEQUENCE BY clause in a SELECT statement. See
RUNNINGMAX is a Neoview SQL extension.
RUNNINGMAX (column-expression)
column-expression
specifies a derived column determined by the evaluation of the column expression.
RUNNINGMAX returns the maximum of values of column-expression up to and including
the current row.
Example 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.
RUNNINGMIN Function
The RUNNINGMIN function is a sequence function that returns the minimum of values of a
column up to and including the current row of an intermediate result table ordered by a
SEQUENCE BY clause in a SELECT statement. See
RUNNINGMIN is a Neoview SQL extension.
RUNNINGMIN (column-expression)
column-expression
specifies a derived column determined by the evaluation of the column expression.
RUNNINGMIN returns the minimum of values of column-expression up to and including
the current row.
Example of RUNNINGMIN
Return the minimum of values of I1 up to and including the current row:
1
2
2
3
4
"SEQUENCE BY Clause" (page
"SEQUENCE BY Clause" (page
RUNNINGMAX Function
268).
268).
397