Lastnotnull Function; Example Of Lastnotnull - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

LASTNOTNULL Function

The LASTNOTNULL function is a sequence function that returns the last nonnull value of a
column in an intermediate result table ordered by a SEQUENCE BY clause in a SELECT statement.
See
"SEQUENCE BY Clause" (page
LASTNOTNULL is a Neoview SQL extension.
LASTNOTNULL (column-expression)
column-expression
specifies a derived column determined by the evaluation of the column expression. If only
null values have been returned, LASTNOTNULL returns null.

Example of LASTNOTNULL

Return the last nonnull value of a column:
SELECT LASTNOTNULL (I1) AS LASTNOTNULL
FROM mining.seqfcn SEQUENCE BY TS;
LASTNOTNULL
-----------
6215
6215
19058
19058
11966
--- 5 row(s) selected.
410
SQL Functions and Expressions
326).

Advertisement

Table of Contents
loading

Table of Contents