VAR_POP
Calculate population variance. This function computes the statistical variance for a set of values assumed to be the entire population.
Syntax
VAR_POP(expr)Description
Examples
CREATE TABLE v(i tinyint);
INSERT INTO v VALUES(101),(99);
SELECT VAR_POP(i) FROM v;
+------------+
| VAR_POP(i) |
+------------+
| 1.0000 |
+------------+
INSERT INTO v VALUES(120),(80);
SELECT VAR_POP(i) FROM v;
+------------+
| VAR_POP(i) |
+------------+
| 200.5000 |
+------------+See Also
Last updated
Was this helpful?

