YEAR/MONTH/DAYOFMONTH/HOUR/MINUTE/SECOND | Teradata Vantage - 17.00 - 17.05 - YEAR/MONTH/DAYOFMONTH/HOUR/MINUTE/SECOND - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Date and Time Functions and Expressions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Release Date
June 2020
Content Type
Programming Reference
Publication ID
B035-1211-170K
Language
English (United States)

Returns the year, month, day of month, hour, minute, and second field from any DateTime or Interval value, converting it to an exact numeric.

Syntax

{ YEAR | MONTH | DAYOFMONTH | HOUR | MINUTE | SECOND } ( expression )
expression
The expression that results in a DateTime, Interval, or UDT value.