QUARTER()
QUARTER() — Returns the quarter of the year as an integer value
Synopsis
QUARTER( timestamp-value )
Description
The QUARTER() function returns an integer value between 1 and 4 representing the quarter
of the year in a TIMESTAMP value. The QUARTER() function produces the same result as using the
QUARTER keyword with the EXTRACT() function.
Examples
The following example uses the QUARTER() and YEAR() functions to group and sort records
containing a timestamp.