[php]
Oracle9i SQL Reference
Release 2 (9.2)
Part Number A96540-01
--------------------------------------------------------------------------------
Functions, 23 of 177
--------------------------------------------------------------------------------
CORR
Syntax
corr::=
Text description of corr
See Also:
"Analytic Functions" for information on syntax, semantics, and restrictions
Purpose
CORR returns the coefficient of correlation of a set of number pairs. You can use it as an aggregate or analytic function.
Both expr1 and expr2 are number expressions. Oracle applies the function to the set of (expr1, expr2) after eliminating the pairs for which either expr1 or expr2 is null. Then Oracle makes the following computation:
COVAR_POP(expr1, expr2) / (STDDEV_POP(expr1) * STDDEV_POP(expr2))
The fu