LAB 15 OF 31

SQL: find the bad row

Pick the right query to find a wrong row in a made-up Daily List table.

The diagram

Tom checks the tasks table on a test copy. It has the columns id, title, status and owner_id. He asks four questions. Pick the query that answers each.

  1. Which tasks have no owner?
  2. Which statuses are not allowed? The allowed ones are To do, Doing and Done.
  3. Are any titles used twice for the same owner?
  4. Which tasks point at an owner that does not exist in the users table?

0 of 4 steps chosen.

SYNTHETIC / TRAINING ONLY. The Daily List app and the people in it are made up, and every number is a teaching figure.

What this shows

Short SELECT queries answer data questions: which rows are wrong, missing or doubled.

Read the lessons

NEXT LAB: CSS OR XPATH: PICK THE STABLE LOCATOR →