Outdated Version

You are viewing an older version of this section. View current production version.

VAR_SAMP

Aggregate function. Calculates the sample variance value from a set of numbers. VAR_SAMP returns NULL if there are not matching rows.

Syntax

VAR_SAMP ( expression )

Arguments

  • expression: any expression. This may be a column name, the result of another function, or a math operation.

Return Type

A double.

Examples

memsql> select VAR_SAMP(table_rows) from information_schema.tables;
+-----------------+
| VAR_SAMP(table_rows) |
+-----------------+
|       2.1500    |
+-----------------+
1 row in set (2.87 sec)