Топ-100
 
RDBMS Type: MySQL
Topic

Syntax:
QUARTER(date)

Returns the quarter of the year for date, in the range 1 to 4.

URL: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html

Example

mysql> SELECT QUARTER('2008-04-01');
-> 2