REGR_AVGY Function | Mean Function | Teradata Vantage - REGR_AVGY - Analytics Database - Teradata Vantage

SQL Functions, Expressions, and Predicates

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
2024-01-12
dita:mapPath
obm1628111499646.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
kby1472250656485
lifecycle
latest
Product Category
Teradata Vantageā„¢

Returns the mean of the dependent_variable_expression for all non-null data pairs of the dependent and independent variable arguments.

For the REGR_AVGY window function that performs a group, cumulative, or moving computation, see Window Aggregate Functions.

Computation

When there are fewer than two non-null data point pairs in the data used for the computation, then REGR_AVGY returns NULL.

Division by zero results in NULL rather than an error.