NULL numeric values produced by an expression. The sample variance measures the average of the squared differences from the sample mean, indicating how spread out the values are within a sample.
For information about the population variance, which measures how spread out the values are within the full population, see VAR_POP.
Alias: VARIANCE
Syntax
Parameters
Return Type
VAR_SAMP returns a result of type DOUBLE PRECISION.
Special cases
- If there is at most one non-
NULLinput value, the result isNULL. - If the input contains an
InforNaNvalue, the result will beNaN.
Example
The following example calculates the sample variance of five grade values:Rows: 1Execution time: 5.95ms