TD_SEQUENCED_AVG Function | Teradata Vantage - 17.00 - 17.05 - TD_SEQUENCED_AVG - 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)

Finds the average of a column for all adjacent periods in normalized rows whose Period values either meet or overlap.

Syntax

[TD_SYSFNLIB.] TD_SEQUENCED_AVG (
  grouping_column_list,
  numeric_column,
  period_column
)
grouping_column_list
One or more grouping columns, not including the Period column. You must specify the input as a dynamic UDT.
numeric_column
A numeric column on which the average is requested. You must specify the input as a dynamic UDT.
period_column

An expression that results in a DATE, TIMESTAMP, or TIMESTAMP WITH TIME ZONE value.

TD_SYSFNLIB.
Name of the database where the function is located.