In MySQL, the VARIANCE() function returns the population standard variance of an expression.
If there are no matching rows, or if the expression is NULL, the function returns NULL.
The VARIANCE() function is a synonym for the standard SQL VAR_POP() function. In other words, they both do the same thing, but VARIANCE() is not standard SQL. Therefore, if you need to use standard SQL, use VAR_POP() instead.