Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Dec 02, 2024
Send us feedback
quarter
Applies to: Databricks SQL Databricks Runtime
Returns the quarter of the year for expr in the range 1 to 4. This function is a synonym for extract(QUARTER FROM expr).
expr
extract(QUARTER FROM expr)
quarter(expr)
expr: A DATE or TIMESTAMP expression.
An INTEGER.
> SELECT quarter('2016-08-31'); 3
day function
dayofweek function
dayofyear function
extract function
month function