VeloDB Cloud
SQL Manual
Functions
aggregate-functions
VARIANCE_SAMP,VARIANCE_SAMP

VARIANCE_SAMP,VARIANCE_SAMP

Description

Syntax:

VAR SAMP (expr)

This function returns the sample variance of expr.

Example

MySQL > select var_samp(scan_rows) from log_statis group by datetime;
+-----------------------+
| var_samp(`scan_rows`) |
+-----------------------+
|    5.6227132145741789 |
+-----------------------+

Keywords

VAR SAMP, VARIANCE SAMP,VAR,SAMP,VARIANCE