Syntax:
STDDEV_SAMP(expr)

Returns the sample standard deviation of expr (the square root of
VAR_SAMP().

If there are no matching rows, STDDEV_SAMP() returns NULL.

URL: http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html

