Extract Hour - Teradata Warehouse Miner

Teradata® Warehouse Miner™ User Guide - Volume 2ADS Generation

Product
Teradata Warehouse Miner
Release Number
5.4.6
Published
November 2018
Language
English (United States)
Last Update
2018-12-07
dita:mapPath
gxn1538171534877.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2301
Product Category
Software

The standard date/time field extract function is supported for Hour, generating EXTRACT(HOUR FROM date/time expression). If this function is applied to a column or expression of type other than Time or Timestamp, a SQL runtime error will occur. When dragging an Extract Hour function into a variable, the following tree element is created.

Variable Creation > Input > Variables: SQL Elements pane - Date and Time > Extract Hour

Columns and/or other expressions/literals that resolve to a time or timestamp can be moved over the (empty) branch of the tree.

The type of the value returned is integer. There are no special properties for the Extract Hour function.