1.1.1

Table Of Contents
Syntax
ASIN ( number )
ATAN function
The ATAN function returns the arc tangent of a specied number.
The specied number is the tangent, 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.
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.
Syntax
ATAN ( number )
ATAN2 function
The ATAN2 function returns the arctangent, in radians, of the quotient of the two arguments.
Upon successful completion, the function returns the arc tangent of y/x in the range -pi to pi radians, where y is
the rst argument and x is the second argument. The specied numbers must be DOUBLE PRECISION on page
629 numbers.
If either argument is NULL, the result of the function is NULL.
If the rst argument is zero and the second argument is positive, the result of the function is zero.
If the rst argument is zero and the second argument is negative, the result of the function is the double value
closest to pi.
If the rst argument is positive and the second argument is zero, the result is the double value closest to pi/2.
If the rst argument is negative and the second argument is zero, the result is the double value closest to -pi/2.
The data type of the returned value is a DOUBLE PRECISION number.
Syntax
ATAN2 ( y, x )
AVG function
AVG is an aggregate function that evaluates the average of an expression over a set of rows. AVG is allowed
only on expressions that evaluate to numeric data types.
Syntax
AVG ( [ DISTINCT | ALL ] Expression )
The DISTINCT qualier eliminates duplicates. The ALL qualier retains duplicates. ALL is the default value
if neither ALL nor DISTINCT is specied. For example, if a column contains the values 1.0, 1.0, 1.0, 1.0, and
2.0, AVG(col) returns a smaller value than AVG(DISTINCT col).
vFabric SQLFire User's Guide556
vFabric SQLFire Reference