STDEV
aggregation
What changes
- Input
- the argument expression over each group's rows (COUNT(*) reads no column)
- Output or change
- one value per group (or one for the whole input when there is no GROUP BY)
- Return type
- float
Syntax at a glance
STDEV ( [ ALL | DISTINCT ] expression )
Work example
Estimate standard deviation when rows represent a sample of a larger population.
Try null-only, duplicate, and one-row groups. Check result type and whether the aggregate is exact.
Check your work The result uses sample semantics and needs enough nonnull rows.
Open Microsoft Learn for full syntax, permissions, and details for your version.