COVAR_POP function in Oracle

COVAR_POP is one of the vital Analytic functions of Oracle. It is used to get the population covariance of a set of number pairs. The COVAR_POP function is supported in the various versions of the Oracle/PLSQL, including, Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i and Oracle 8i.

Syntax:

COVAR_POP ( expr1, expr2 )

Parameters: expr1, expr2: They are used to specify the numerical expressions to be used for calculation.

Example:

select COVAR_POP (avg_age, avg_marks)
from students;

Explanation: Here, the population covariance will be returned for the fields called ‘avg_age’ and ‘avg_marks’ of the ‘students’ table.

Please follow and like us:
Content Protection by DMCA.com