This section contains reference documentation for the AVG function.
Returns the average of values for a numeric column in a group as Double.
Double
AVG(colName)
These examples are based on the Batch Quick Start.
select AVG(hits) AS value from baseballStats
27.254965229242498
Last updated 3 hours ago
Was this helpful?