Syntax
MONTH(Argument)
Description
The MONTH SQL scalar function returns the month part of a value.
The argument must be a date, timestamp.
The result of the function is a large integer.
If the argument can be null, the result can be null; if the argument is null, the result is the null value.
The result is the month part of the value, which is an integer between 1 and 12.
Example
Select all rows from the EMPLOYEE table for people who were born (BIRTHDATE) in DECEMBER.
CURSOR C1 EMPLOYEE
*COND(MONTH(BIRTHDATE) = 12)
List of SQL scalar functions by topic