This Oracle tutorial explains how to use the Oracle/PLSQL CORR function with syntax and examples.
The Oracle/PLSQL CORR function returns the coefficient of correlation of a set of number pairs.
The syntax for the CORR function in Oracle/PLSQL is:
The numbers to use to calculate the cofficient of correlation.
The CORR function returns a numeric value.
The CORR function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle CORR function examples and explore how to use the CORR function in Oracle/PLSQL.
For example:
Here is an example using the GROUP BY clause: