1.1.1

Table Of Contents
FROM t2
WHERE t2.y = SUM(t1.c3))
A cursor declared on a ResultSet that includes an aggregate in the outer query block is not updatable.
ABS or ABSVAL function
ABS or ABSVAL returns the absolute value of a numeric expression. The return type is the type of parameter.
All built-in numeric types are supported (DECIMALSyntax in CREATE TABLEExample on page 627, DOUBLE
PRECISION on page 629, FLOATSyntax in CREATE TABLE on page 629, INTEGER on page 629, BIGINT on
page 624, NUMERICSyntax in CREATE TABLE on page 630, REALExamples on page 631, and SMALLINT
on page 631).
Syntax
ABS(NumericExpression)
Example
-- returns 3
VALUES ABS(-3)
ACOS function
The ACOS function returns the arc cosine of a specied number.
The specied number is the cosine, in radians, of the angle that you want. The specied number must be a
DOUBLE PRECISION on page 629 number.
If the specied number is NULL, the result of this function is NULL.
If the absolute value of the specied number is greater than 1, an exception is returned that indicates that the
value is out of range (SQL state 22003).
The returned value, in radians, is in the range of zero (0) to pi. The data type of the returned value is a DOUBLE
PRECISION number.
Syntax
ACOS ( number )
ASIN function
The ASIN function returns the arc sine of a specied number.
The specied number is the sine, in radians, of the angle that you want. The specied number must be a DOUBLE
PRECISION on page 629 number.
If the specied number is NULL, the result of this function is NULL.
If the specied number is zero (0), the result of this function is zero with the same sign as the specied number.
If the absolute value of the specied number is greater than 1, an exception is returned that indicates that the
value is out of range (SQL state 22003).
The returned value, in radians, is in the range -pi/2 to pi/2. The data type of the returned value is a DOUBLE
PRECISION number.
555
SQL Language Reference