VAR
Description
VAR calculates the variance per group. The variance is the square root of the standard deviation. Variance can be applied to INT or FLOAT columns.
Syntax
VAR ( table.column )
NULL handling
NULL values are ignored, so they do not influence the result. If all the values of a group are NULL, the result for this group is also NULL.
Examples
[1] Variance of column.  | ||||||||||
  | ||||||||||
  | 
[2] Variance by country.  | ||||||||||||||||||||||||||
  | ||||||||||||||||||||||||||
  | 
[3] Variance with nulls, grouped by country.  | ||||||||||||||||||
  | ||||||||||||||||||
  |