Aggregates
Aggregate
avg()
Calculates the average value for all tuples in x.
Reference: DuckDB 1.4.4
Arguments & returns
11 overloadsavg(x)
Aggregate
Example
Haybarn WASM 2.0.0-rc12 · In your browser
Engine example with sample data · Run to view results.
In a query
Find the middle of the story.
Compare the average with the median to see how an unusually large value changes your summary.
Haybarn WASM 2.0.0-rc12 · In your browser
Guide recipe · Run to view results.