OracleAggregate FunctionsCORR
VAR_POP

CORRAggregate Functions

COVAR_POP

Returns the correlation coefficient.

Syntax

CORR(y, x)

Example

Enter values below to update the example in real time.

years_experience
salary
employees
SELECT CORR(years_experience, salary) AS corr
FROM employees;