15.10 - EXTRACT FROM - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

Use the EXTRACT date function. You cannot specify an EXTRACT function in the definition of a column-partitioned join index.

See SQL Functions, Operators, Expressions, and Predicates, B035-1145 for more information about the EXTRACT function.
Note that join index definitions support only the extraction of years and months from a date column.

YEAR
Extract a year from a date column.

MONTH
Extract a month from a date column.

date_expression
Date column or date expression from which to derive the year or month.