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
Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com

    Post your comments , suggestion , error , requirements etc here





    SQL Video Tutorials










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