MySQLAggregate FunctionsSTDDEV_SAMP
STD

STDDEV_SAMPAggregate Functions

VAR_POP

Returns the sample standard deviation.

Syntax

STDDEV_SAMP(expr)

Example

Enter values below to update the example in real time.

price
sample_stddev
products
SELECT ROUND(STDDEV_SAMP(price), 2) AS sample_stddev
FROM products;