Important
Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.
QUARTER
On this page
The QUARTER() function extracts the quarter of the year from the given datetime, starting with 1.
Syntax
QUARTER ( dateobj )Arguments
-
dateobj: A valid date, datetime, or parsable date string.
Return Type
Integer
Examples
SELECT QUARTER('2009-02-13 23:31:30');
+--------------------------------+
| QUARTER('2009-02-13 23:31:30') |
+--------------------------------+
| 1 |
+--------------------------------+Last modified: