Skip to content

COVAR_POP

  • expr1: This is the first argument or expression for which the population covariance is to be calculated. It must be a number datatype or any type that can be implicitly converted to a number.
  • expr2: This parameter refers to the second argument or expression. Just like expr1, it also must be a number datatype or any type implicitly convertible to a number. The population covariance is calculated between expr1 and expr2.
SELECT COVAR_POP(salary, commissions)
FROM employees;
112233.44

The COVAR_POP function is used for finding the population covariance for a pair of columns. In this example, the population covariance of salary and commissions is calculated from the employees table. It returns a single value.