STDDEV: population standard deviation

Standard Deviation Query MySQL aggregate function STDDEV() returns population standard deviation of the input field. It returns NULL if no matching row is found.

STDDEV() is synonym of the sql function STDDEV_POP().
STD() is also synonym of the sql function STDDEV_POP().

Here are some examples using our student table.



SELECT STDDEV(mark) , STD(mark), STDDEV_POP(mark) FROM `student`
Output is here
STDDEV(mark)STD(mark)STDDEV_POP(mark)
16.4976616375222316.4976616375222316.49766163752223

By using FORMAT()

Restrict decimal places by using FORMAT()

SELECT FORMAT(STDDEV(mark),2) FROM `student`
Output is here
FORMAT(STDDEV(mark),2)
16.50
SQL Math References Variance Average value Query
Subhendu Mohapatra — author at plus2net
Subhendu Mohapatra

Author

🎥 Join me live on YouTube

Passionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.



Subscribe to our YouTube Channel here



plus2net.com




SQL Video Tutorials










We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer