Computes the statistical variance of a population consisting of a numeric expression, as a double. varp is an alias for var_pop, and uses the same syntax.
var_pop ( [all | distinct] expression )
select type, avg(advance) as "avg", var_pop(advance) as "variance" from titles group by type order by type
Computes the population variance of the provided value expression evaluated for each row of the group (if distinct was specified, then each row that remains after duplicates have been eliminated), defined as the sum of squares of the difference of value expression, from the mean of value expression, divided by the number of rows in the group or partition.
For general information about aggregate functions, see Aggregate Functions in Transact-SQL Users Guide.
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute var_pop.