# MIN

An aggregate function returning the lowest non-NULL value.

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

**MIN** — An aggregate function returning the lowest non-NULL value.

```sql
SELECT customer_id, MIN(total_amount) AS smallest_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

## In other subjects

- [min in HTML](https://www.ask-codey.com/glossary/min-html)

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