In MySQL, the VAR_POP()
function returns the population standard variance of an expression.
If there are no matching rows, or if the expression is NULL
, VAR_POP()
it returns NULL
.
VAR_POP()
is an aggregate function, and so it can be used with the GROUP BY
clause.
The VAR_POP()
function is standard SQL. There’s also a VARIANCE()
function that does the same thing, but is not standard SQL.