Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query
optimization, and usability that you won’t want to miss.
Aggregate function. Calculates the sample variance value from a set of numbers. VAR_SAMP
returns NULL if there are not matching rows.
VAR_SAMP ( expression )
A double.
SELECT VAR_SAMP(table_rows) FROM information_schema.tables;
+----------------------+
| VAR_SAMP(table_rows) |
+----------------------+
| 2.1500 |
+----------------------+
1 row in set (2.87 sec)