×

sql · level 1 · unit 4 · lesson 1

  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

means nothing is there. Find it with .

In the books table, some books have no borrower because they are on the shelf. That box holds NULL, which means no value at all. It is not zero, and it is not text.

To find empty boxes, use IS NULL. To find full ones, use IS NOT NULL. Never write = NULL: it finds nothing, because nothing can equal an empty box.

When a result has an empty box, it shows the word NULL so you can spot it.

SELECT title FROM books WHERE borrower IS NULL;

NULL needs no quotes, because 'NULL' in quotes is the word NULL written as text.