17.05 - MovingAverage Input - Teradata Database

Teradata Vantage™ - Advanced SQL Engine Analytic Functions

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
17.05
created_date
June 2020
category
Programming Reference
featnum
B035-1206-170K

Input Table Schema

Column Data Type Description
partition_column Any [Column appears once for each specified partition_column.] Column by which input data is partitioned. This column must contain all rows of an entity. For example, if function is to compute moving average of a particular stock share price, all transactions of that stock must be in one partition.

PARTITION BY clause assumes column names are in Normalization Form C (NFC).

order_column Any [Column appears once for each specified order_column.] Column by which input table is ordered.

ORDER BY clause supports only ASCII collation.

target_column INTEGER, SMALLINT, BIGINT, NUMERIC, NUMBER, or DOUBLE PRECISION [Column appears once for each specified target_column.] Values to average.