Aggregates Aggregate

decimal_average()

Computes the average of a DECIMAL column using exact integer arithmetic with banker's rounding. Returns a DECIMAL with the same width and scale as the input.

Reference: Haybarn WASM 2.0.0-rc12

Arguments & returns

decimal_average(arg)

Aggregate
Overload link arg Returns
#01 DECIMAL DECIMAL

Example

decimal_average example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example with sample data · Run to view results.