Skip to content

STDDEV

  • expr: This represents the population parameter by which all rows are grouped. It is the column or set of columns used to determine the standard deviation. The function calculation is done on these values.
SELECT STDDEV(salary)
FROM employees;
1234.567890123456

This statement returns the standard deviation of the salary column from the employees table. The STDDEV() function in MySQL calculates the population standard deviation of a set of numbers. The output is a single decimal value representing the standard deviation.