CORR Function Syntax | Teradata Vantage - CORR Function Syntax - 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
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
obm1628111499646.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
kby1472250656485
lifecycle
latest
Product Category
Teradata Vantage™
CORR (value_expression_1, value_expression_2)

Syntax Elements

value_expression_1
A numeric expression to be correlated with a second numeric expression.
The expression cannot contain any ordered analytical or aggregate functions.
value_expression_2
A numeric expression to be correlated with a second numeric expression.
The expression cannot contain any ordered analytical or aggregate functions.

Computation

The equation for computing CORR is defined as follows:

This variable … Represents …
x value_expression_2
y value_expression_1

Division by zero results in NULL rather than an error.