# WHERE

*noun*

say it: **“WAIR”** **/wɛr/**

The part of a query that keeps only the rows matching a condition.

## What does **WHERE** do in a relational database?

**WHERE** — A query clause keeping only rows for which its condition is true.

```sql
SELECT order_id
FROM purchase_order
WHERE total_amount >= 100 AND status = 'open';
```

## In a sentence

- “I added **WHERE** Country = 'UK' to see only British customers.”

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

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/where-database
