bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MS Access Avg() Function

Concept visual

MS Access Avg() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

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

SELECT Avg(Price) AS

AveragePrice FROM Products;

Definition and Usage

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

Note:

NULL values are ignored.

Syntax

Avg(

expression )

Parameter Values

Parameter

Description expression

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

Technical Details

Works in:

From 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);

Previous

❮ MS Access Functions

Next

Previous

MS Access Atn() Function

Next

MS Access Cos() Function