×

sql · level 1 · unit 2 · lesson 4

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Ask sharper questions with , and .

AND links two conditions. A row stays only if it passes both, like a snack that is sweet and under a pound.

OR keeps a row that passes at least one condition, like a pet that is a cat or a dog. NOT flips a condition, so NOT species = 'dog' keeps everything except dogs.

Each side needs a full condition: species = 'cat' OR species = 'dog'. Write the column name both times.

SELECT name, price FROM snacks WHERE kind = 'sweet' AND price < 100;

NOT species = 'dog' finds the same rows as species <> 'dog'.