STDEV#

Returns the statistical standard deviation of all values in the specified expression.

Syntax#

STDEV ( [ ALL | DISTINCT ] expression )
    OVER ( [ partition_by_clause ] order_by_clause )

Arguments#

expression

Is a numeric expression. Aggregate functions and subqueries are not permitted. expression is an expression of the exact numeric or approximate numeric data type category, except for the bit data type.

Return types#

float

Example#

SELECT STDEV([IntNotNullColumn]) AS [Stdev] FROM [IntTable]

See Also#