Quick Ref.
Compatibility
QUARTER(d)
Engine OK Alternative
ingres yes EXTRACT(QUARTER FROM d)
mysql yes EXTRACT(QUARTER FROM d)
oracle no TO_CHAR(d,'Q')
postgres no EXTRACT(QUARTER FROM (d)
sqlserver no DATEPART(QUARTER,d)

QUARTER

QUARTER allows you to retrieve the 3 month period from a date.

QUARTERS
First Quarter1January 1March 31
Second Quarter2April 1June 30
Third Quarter3July 1September 30
Fourth Quarter4October 1December 31

 QUARTER(d)

In this example you get the quarter from the date field wk. Lately, Cliff Richard favours Q4.


Results
See also: