Skip to content · ⁨コンテンツへスキップ⁩
English

Combining conditions

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

  • AND — both must be true
  • OR — at least one must be true
  • NOT — flips a condition

This returns 11A students who also scored above 88.

日本語

条件の組み合わせ

WHERE クロースは一度に複数のことをテストできます。条件を以下のように接続します:

  • AND — 両方が真である必要があります
  • OR — 少なくとも一方が真である必要があります
  • NOT — 条件を反転させる
SELECT name FROM student WHERE form = '11A' AND score > 88;

此操作将返回 11名同时得分高于 88的学生。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP