AVG Function Syntax | Teradata Vantage - 17.00 - 17.05 - AVG Function Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Published
June 2020
Language
English (United States)
Last Update
2021-01-30
dita:mapPath
tpt1555966086716.ditamap
dita:ditavalPath
lze1555437562152.ditaval
{ AVERAGE | AVG | AVE } ( [ DISTINCT | ALL ] value_expression )

Syntax Elements

DISTINCT
Exclude duplicates specified by value_expression from the computation.
ALL
All values that are not null of value_expression, including duplicates, are included in the computation.
value_expression
A literal or column expression for which an average is to be computed.
The value_expression cannot be a reference to a view column derived from a function, and cannot contain any ordered analytical or aggregate functions.