Files
doris/docs/documentation/cn/sql-reference/sql-functions/aggregate-functions/variance.md
xy720 4c2a3d6da4 Merge Help document to documentation (#1586)
Help document collation (integration of help and documentation documents)
2019-08-07 21:31:53 +08:00

566 B
Executable File

VARIANCE,VAR_POP,VARIANCE_POP

description

Syntax

VARIANCE(expr)

返回expr表达式的方差

example

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

MySQL > select var_pop(scan_rows) from log_statis group by datetime;
+----------------------+
| var_pop(`scan_rows`) |
+----------------------+
|   5.6230744719006163 |
+----------------------+
##keyword
VARIANCE,VAR_POP,VARIANCE_POP,VAR,POP