CORR Function Syntax | Teradata Vantage - 17.10 - CORR Function Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1145-171K
Language
English (United States)
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.