SQL - Scalar functions - QUARTER
Returns an integer value in the range 1 to 4, representing the quarter of the year for the date specified in the argument.
The schema is SYSFUN.
The result of the function is INTEGER. The result can be null; if the argument is null, the result is the null value.