Skip to content

Filtering with WHERE

Handout

Filtering rows with WHERE

So far every query returned all the rows. Add a WHERE clause to keep only the rows that match a condition:

SELECT name, score FROM student WHERE score >= 80;

Only rows where the condition is true are returned.

Handout

Log in or create account

IGCSE & A-Level