Syntax
QUARTER(date)
Purpose
You can call this function to return the quarter value of the specified date. Value range: [1, 4].
Examples
obclient> SELECT QUARTER(NOW()), NOW();
+----------------+---------------------+
QUARTER(NOW()) NOW()
+----------------+---------------------+
3 2021-07-12 19:45:01
+----------------+---------------------+
1 row in set (0.00 sec)