QUARTER

Returns the quarter of the year for a given date value.

Syntax

QUARTER(date)

Example

SELECT QUARTER(DATE '2020-06-20');