In MySQL, the VAR_SAMP() function returns the sample variance of an expression. The denominator is the number of rows minus one.
If there are no matching rows, or if the expression is NULL, VAR_SAMP() returns NULL.
VAR_SAMP() is an aggregate function, and so it can be used with the GROUP BY clause.
The VAR_SAMP() function can also be used as a window function.