1.1.1

Table Of Contents
The argument must be a date, timestamp, or a valid character string representation of a date or timestamp that
is not a CLOB, LONG VARCHAR, or XML value. The result of the function is an integer between 1 and 12.
If the argument can be null, the result can be null; if the argument is null, the result is the null value.
Syntax
MONTH ( expression )
Example
Select all rows from the EMPLOYEE table for people who were born (BIRTHDATE) in
DECEMBER.
SELECT * FROM EMPLOYEE WHERE MONTH(BIRTHDATE) = 12
NULLIF expressions
Use the NULLIF expressions for conditional expressions in SQLFire.
NULLIF expression syntax
NULLIF ( L, R )
The NULLIF expression is very similar to the CASE expression. For example,
NULLIF(V1,V2)
is equivalent to the following CASE expression:
CASE WHEN V1=V2 THEN NULL ELSE V1 END
PI function
The PI function returns a value that is closer than any other value to pi.
The constant pi is the ratio of the circumference of a circle to the diameter of a circle.
The data type of the returned value is a DOUBLE PRECISION on page 629 number.
Syntax
PI ( )
RADIANS function
The RADIANS function converts a specied number from degrees to radians.
The specied number is an angle measured in degrees, which is converted to an approximately equivalent angle
measured in radians. The specied number must be a DOUBLE PRECISION on page 629 number.
Attention: The conversion from degrees to radians is not exact.
The data type of the returned value is a DOUBLE PRECISION number.
579
SQL Language Reference