Syntax
QUARTER(Argument)
Description
The QUARTER SQL scalar function returns an integer between 1 and 4 that represents the quarter of the year in which the date resides. For example, any dates in January, February, or March will return the integer 1.
The argument must be a date, a 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.
Example
Assume ORDER_DATE is February 15, 2003.
QUARTER(ORDER_DATE) returns 1.
List of SQL scalar functions by topic