# AVG

*noun*

say it: **“AV-rij”** **/ˈævrɪdʒ/**

A SQL aggregate function that returns the average of a column's values.

## What is **AVG** in a relational database?

**AVG** — An aggregate function returning the average of non-NULL numeric values.

```sql
SELECT customer_id, AVG(total_amount) AS average_total
FROM purchase_order
GROUP BY customer_id;
```

## In a sentence

- “**AVG**(UnitPrice) gave the average price of each category.”

Level: Apprentice · [More SQL terms at this level](https://www.ask-codey.com/glossary?category=sql&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/avg
