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

By using FORMAT()

Restrict decimal places by using FORMAT()

SELECT FORMAT(STDDEV(mark),2) FROM `student`
Output is here

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-2021 All rights reserved worldwide Privacy Policy Disclaimer