Syntax
QUARTER(date)
Purpose
Returns the quarter value of the specified date, which ranges from 1 to 4.
Examples
obclient> SELECT QUARTER(NOW()), NOW();
+----------------+---------------------+
| QUARTER(NOW()) | NOW() |
+----------------+---------------------+
| 3 | 2021-07-12 19:45:01 |
+----------------+---------------------+
1 row in set
