stddev_samp

The sample standard deviation.

AggregateDeterministic

Flags

Flag Value
Kind aggregate
Nulls nulls are skipped
Deterministic yes
Order matters no
Decomposable yes, by Welford count, mean, m2

Example

A pipeline from the language's tested corpus that uses stddev_samp, over the example tables.

Hint
from orders
aggregate {med = median(amount), p90 = quantile(amount, q: 9e-1), p10 = quantile(price, q: 1e-1, method: "disc"), v = var_samp(price), sd = stddev_samp(price), m = mode(status), d = count_distinct(customer)} by:{rush}

In a plan:

JSON
{
  "args": [
    {
      "col": 4
    }
  ],
  "fn": "stddev_samp"
}