portableSql

Avg Portable SQL Function

Syntax

Avg as N (Expression as N)

Arguments

ExpressionNumeric

A field or expression.

Returns

resultNumeric

Returns the average value of the expression.

Description

Compute the average value of the expression over all rows that satisfy the expression.

Discussion

The Avg function computes the average value of the expression over all rows that satisfy the expression.

Avg() function executed on the Northwind Access database
SELECT Avg(Order_Details.Discount) AS AvgDiscount FROM [Order Details] Order_Details
=0.056167054202261