Extract Second - 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 Second, generating EXTRACT(DAY 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 Second function into a variable, the following tree element is created.

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

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 if fractional seconds precision is 0, and DECIMAL(8, n) if precision is n. There are no special properties for the Extract Second function.