Statistics
STDDEV_POP()
Overview
The STDDEV_POP()
aggregate function calculates the population stardard deviation of a set of numeric values.
Syntax
The syntax for this function is as follows:
Parameters
expression
: numeric expression or column for which the population standard deviation is calculated
Example
For the needs of this section, we’re going to use a simplified version of the film
table from the Pagila database, containing only the title
, length
and rating
columns. The complete schema for the film
table can be found on the
Pagila database website.
They query below uses the STDDEV_POP()
function to calculate the population standard deviation for the length
column:
By executing the above code, we will get the following output: