FIRST Function | Teradata Vantage - FIRST - Analytics Database - Teradata Vantage

Time Series Tables and Operations

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
tuc1628112453431.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
sfz1493079039055
lifecycle
latest
Product Category
Teradata Vantageā„¢

Returns the oldest value, determined by the timecode, for each group. FIRST is a single-threaded function.

To invoke the FIRST function, use the GROUP BY TIME clause.

Return Values

The return value is the same data type as the input data type.

Nulls are not included in the result computation.

Usage Notes

FIRST is only valid on numeric data.

In the event of a tie, such as simultaneous timecode values for a particular group, all tied results are returned. If a sequence number is present with the data, it can break a tie, assuming it is unique across identical timecode values.