Neoview SQL Reference Manual (R2.5)
such operations may not be parallelized because the entire sorted result set must be available in
order to compute the result of the sequence function.
Difference sequence functions:
Calculates differences between values of a column
expression in the current row and previous rows.
“DIFF1 Function” (page 396)
Calculates differences between values of the result of
DIFF1 of the current row and DIFF1 of previous rows.
“DIFF2 Function” (page 398)
Moving sequence functions:
Returns the average of nonnull values of a column
expression in the current window.
“MOVINGAVG Function” (page 425)
Returns the number of nonnull values of a column
expression in the current window.
“MOVINGCOUNT Function” (page 426)
Returns the maximum of nonnull values of a column
expression in the current window.
“MOVINGMAX Function” (page 427)
Returns the minimum of nonnull values of a column
expression in the current window.
“MOVINGMIN Function” (page 428)
Returns the standard deviation of nonnull values of a
column expression in the current window.
“MOVINGSTDDEV Function” (page 429)
Returns the sum of nonnull values of a column expression
in the current window.
“MOVINGSUM Function” (page 431)
Returns the variance of nonnull values of a column
expression in the current window.
“MOVINGVARIANCE Function” (page 432)
Offset sequence function:
Retrieves columns from previous rows.“OFFSET Function” (page 438)
Running sequence functions:
Returns the rank of the given value of an intermediate
result table ordered by a SEQUENCE BY clause in a
SELECT statement
“RANK/RUNNINGRANK Function” (page 444)
Returns the average of nonnull values of a column
expression up to and including the current row.
“RUNNINGAVG Function” (page 456)
Returns the number of rows up to and including the
current row.
“RUNNINGCOUNT Function” (page 457)
Returns the maximum of values of a column expression
up to and including the current row.
“RUNNINGMAX Function” (page 458)
Returns the minimum of values of a column expression
up to and including the current row.
“RUNNINGMIN Function” (page 459)
Returns the rank of the given value of an intermediate
result table ordered by a SEQUENCE BY clause in a
SELECT statement.
“RUNNINGRANK Function” (page 459)
Returns the standard deviation of nonnull values of a
column expression up to and including the current row.
“RUNNINGSTDDEV Function” (page 460)
Returns the sum of nonnull values of a column expression
up to and including the current row.
“RUNNINGSUM Function” (page 461)
Returns the variance of nonnull values of a column
expression up to and including the current row.
“RUNNINGVARIANCE Function” (page 462)
Other sequence functions:
Returns the last nonnull value for the specified column
expression. If only null values have been returned, returns
null.
“LASTNOTNULL Function” (page 410)
Returns the number of rows counted since the specified
condition was last true.
“ROWS SINCE Function” (page 451)
342 SQL Functions and Expressions