EXTRACT clauses
The
EXTRACT
clause extracts a Date/Time component from a DateTime type column.Supported functionality
Expected behavior | Query to achieve the expected behavior |
|---|---|
Extract the day component from a DateTime column. |
|
Extract the year component from a DateTime column. |
|
Extract the month component from a DateTime column. |
|
Extract the hour component from a DateTime column. |
|
Extract the minute component from a DateTime column. |
|
Extract the second component from a DateTime column. |
|
Filter rows by year using EXTRACT. |
|
Unsupported functionality
- Using EXTRACT directly in GROUP BY clauses.
- Casting extracted values to other data types.
Provide Feedback