clause

WHERE

Keeps rows whose predicate is true; false and unknown are excluded. Example target: PostgreSQL 17 and SQLite (local fixture tested).

Formal Syntax & Structure

sql syntaxsql
WHERE condition

Working Example

Example Snippetsql
SELECT id FROM orders WHERE amount > 100 ORDER BY id;
SQL Reference