16.20 - MovingAverage Syntax - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ - NewSQL Engine Analytic Functions

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
July 2019
Content Type
Programming Reference
Publication ID
B035-1206-162K
Language
English (United States)
SELECT * FROM MovingAverage (
  ON { table | view | (query) }
     [ PARTITION BY partition_column [,...] ]
     [ ORDER BY order_column [,...] ]
  [ USING
    [ MAvgType ({ 'C' | 'E' | 'M' | 'S' | 'T' | 'W' }) ]
    [ TargetColumns ('target_column' [,...]) ]
    [ Alpha (alpha) ]
    [ StartRows (n) ]
    [ IncludeFirst ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
    [ WindowSize (window_size) ]
  ]
) AS alias;
If the ON clause does not include the PARTITION BY and ORDER BY clauses, results are nondeterministic.