Runningstddev Function; Considerations For Runningstddev; Equivalent Result; Examples Of Runningstddev - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

-----------
300
200
200
200
100
100
--- 8 row(s) selected.
Return the rank of I2 descending, excluding NULL values:
SELECT I2, RANK (I2) AS RANK
FROM cat.sch.seqfcn
WHERE I2 IS NOT NULL
SEQUENCE BY I2 DESC;
I2
-----------
300
200
200
200
100
100
--- 6 row(s) selected.

RUNNINGSTDDEV Function

The RUNNINGSTDDEV function is a sequence function that returns the standard deviation of
nonnull 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
(page
268).
RUNNINGSTDDEV is a Neoview SQL extension.
RUNNINGSTDDEV (column-expression)
column-expression
specifies a derived column determined by the evaluation of the column expression.
RUNNINGSTDDEV returns the standard deviation of nonnull values of
column-expression up to and including the current row.

Considerations for RUNNINGSTDDEV

Equivalent Result

The result of RUNNINGSTDDEV is equivalent to:
SQRT(RUNNINGVARIANCE(column-expression))

Examples of RUNNINGSTDDEV

Return the standard deviation of nonnull values of I1 up to and including the current row:
SELECT RUNNINGSTDDEV (I1) AS STDDEV_I1
FROM mining.seqfcn
SEQUENCE BY TS;
STDDEV_I1
-------------------------
0.00000000000000000E+000
1.55273578080753976E+004
--------------------
?
?
RANK
--------------------
1
1
3
4
4
4
7
7
1
2
2
2
5
5
"SEQUENCE BY Clause"
RUNNINGSTDDEV Function
389

Advertisement

Table of Contents
loading

Table of Contents