Missing is not zero
IS NULL and IS NOT NULL in a filter · level 1 of 6
Opening your saved work…
Sign in to save across devices → · Download your guest work before switching accounts.
Missing is not zero · IS NULL and IS NOT NULL in a filter · level 1 of 6
Find an evidence gap
The IMDb table holds a thousand films, one row per film, and meta_score is the critics' Metascore. Which films from 2010 onward have no Metascore on file? Watch the query ask for the gap, then run it.
Data: IMDb Movies.
Why it works, clause by clause
- WHERE meta_score IS NULL: keep the films whose score is unknown. = NULL would keep none of them.
- AND year >= 2010: the second test, on the year.
- SELECT id, title, year, meta_score: meta_score stays in the result on purpose, so you can see the blanks.
- ORDER BY id: the same list every run.
From the reading: Missing is not zero, paragraph 2
SELECT id, title, year, meta_score
FROM movies
WHERE meta_score IS NULL AND year >= 2010
ORDER BY id;Query results
Run it to see the result here.Run it to see the result here.
Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.