Saltar al contenido

Filtering with WHERE

English
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.

WHERE score >= 80 keeps Mei, Sara and Lin and leaves out Jamal and Tom

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP