Skip to content

STDDEV_POP

  • expression: The set of values, derived from a column or expression, for which the population standard deviation is to be calculated.
SELECT STDDEV_POP(salary) FROM employees;
10500.0

In the above example, the STDDEV_POP function calculates the population standard deviation of the salaries for all employees. This means it measures the square root of the variance of the values in the salary column, indicating how spread out these values are. The function returns one single value, the population standard deviation, which in this case is 10500.0.