# AVG

An aggregate function returning the average of non-NULL numeric 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;
```

Level: Apprentice · [More Database terms at this level](https://www.ask-codey.com/glossary/subjects/database/apprentice)

Updated: September 28, 2026

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