Time Series Functions (Teradata Database) - 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 following table lists the available Time Series functions, and a description of their purpose. For more details about these functions, refer to Time Series Tables and Operations, B035-1208.

XML, JSON etc.: Time Series Functions
Function Description
TD_GETTIMEBUCKET A system function that gets the TD_TIMEBUCKET column values from a time series table. It is useful because TD_TIMEBUCKET cannot be selected from a time series table. The user may optionally supply the TD_TIMECODE column name indicating when the data was collected. Returns a BIGINT value.
TD_TIME_BUCKET_NUMBER

A system function that calculates the time bucket number for each observation. The user must supply timezero, timecode and timebucket duration. Returns a BIGINT value.