Sequence Functions - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

"LOG10 Function" (page 353)
"MOD Function" (page 364)
"NULLIFZERO Function" (page 378)
"PI Function" (page 382)
"POWER Function" (page 384)
"RADIANS Function" (page 386)
"ROUND Function" (page 392)
"SIGN Function" (page 404)
"SIN Function" (page 405)
"SINH Function" (page 406)
"SQRT Function" (page 408)
"TAN Function" (page 414)
"TANH Function" (page 415)
"ZEROIFNULL Function" (page 434)
See the individual entry for the function.

Sequence Functions

Sequence functions operate on ordered rows of the intermediate result table of a SELECT statement
that includes a SEQUENCE BY clause. Sequence functions are categorized generally as difference,
moving, offset, or running.
Some sequence functions, such as ROWS SINCE, require sequentially examining every row in
the history buffer until the result is computed. Examining a large history buffer in this manner
for a condition that has not been true for many rows could be an expensive operation. In addition,
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:
"DIFF1 Function" (page 334)
"DIFF2 Function" (page 336)
Moving sequence functions:
"MOVINGAVG Function" (page 367)
Returns the base 10 logarithm of a numeric value
expression.
Returns the remainder (modulus) of an integer value
expression divided by an integer value expression.
Returns the value of the operand unless it is zero, in which
case it returns NULL.
Returns the constant value of pi as a floating-point value.
Returns the value of a numeric value expression raised to
the power of an integer value expression. You can also
use the exponential operator **.
Converts a numeric value expression expressed in degrees
to the number of radians.
Returns the value of numeric_expr round to num places
to the right of the decimal point.
Returns an indicator of the sign of a numeric value
expression. If value is less than zero, returns -1 as the
indicator. If value is zero, returns 0. If value is greater than
zero, returns 1.
Returns the sine of a numeric value expression, where the
expression is an angle expressed in radians.
Returns the hyperbolic sine of a numeric value expression,
where the expression is an angle expressed in radians.
Returns the square root of a numeric value expression.
Returns the tangent of a numeric value expression, where
the expression is an angle expressed in radians.
Returns the hyperbolic tangent of a numeric value
expression, where the expression is an angle expressed in
radians.
Returns the value of the operand unless it is NULL, in
which case it returns zero.
Calculates differences between values of a column
expression in the current row and previous rows.
Calculates differences between values of the result of
DIFF1 of the current row and DIFF1 of previous rows.
Returns the average of nonnull values of a column
expression in the current window.
Categories
283

Advertisement

Table of Contents
loading

Table of Contents