Skip to content

AND, OR, NOT

Handout

Combining conditions

A WHERE clause can test more than one thing at once. Join conditions with:

  • ANDboth must be true
  • ORat least one must be true
  • NOT — flips a condition
SELECT name FROM student WHERE form = '11A' AND score > 88;

This returns 11A students who also scored above 88.

Handout

Log in or create account

IGCSE & A-Level