SQL practice: NULL: The Empty Box

Chapter 7 · 8 questions · included in full access

  1. Question 1 · easy

    Find all customers whose signup_date is filled in.

    Solve it in your browser
  2. Question 2 · easy

    Find all customers whose signup_date is empty.

    Solve it in your browser
  3. Question 3 · medium

    Show every employee's name and manager_id, displaying 'Top Boss' where there's no manager.

    Solve it in your browser
  4. Question 4 · medium

    Which products have no thickness_mm? Why would that be, rather than being a mistake?

    Solve it in your browser
  5. Question 5 · medium

    Show each customer's name and signup date, with empty dates shown as 'Not recorded'.

    Solve it in your browser
  6. Question 6 · medium

    Explain in one sentence why WHERE thickness_mm <> 4.0 does not return the accessories.

    Solve it in your browser
  7. Question 7 · hard

    Count the customers two ways — COUNT(*) and COUNT(signup_date). Explain the difference in the numbers.

    Solve it in your browser
  8. Question 8 · hard

    This query is trying to find customers with no signup date, but it returns nothing. Fix it.

    Solve it in your browser

These questions are part of full access.

The first chapters of every track are free. Full access is a one-time payment.

See pricing