MS Access Avg() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

MS Access Avg() Function

❮ MS Access Functions

Example

Return the average value for the "Price" column in the "Products" table:

SELECT Avg(Price) AS AveragePrice FROM Products;
Try it Yourself »

Definition and Usage

The Avg() function returns the average value of an expression.

Syntax

Avg(expression)

Parameter Values

Parameter Description
expression Required. A numeric value (can be a field or a formula)

Technical Details

Works in: Access 2016, Access 2013, Access 2010, Access 2007, Access 2003, Access XP, Access 2000

More Examples

Example

Select all the products that have a price above the average price:

SELECT * FROM Products
WHERE Price > (SELECT Avg(Price) FROM Products);
Try it Yourself »

❮ MS Access Functions