NULL, UNKNOWN and the filter that keeps only TRUE

See why NULL changes comparisons, why WHERE keeps only TRUE, and how IN, NOT IN, IS NULL and IS NOT NULL behave. Foundations · Databases.

A missing value can make a filter neither true nor false. Follow one query until that quiet third result changes the rows you see.

What you will learn

  • Distinguish NULL from zero and empty text
  • Trace TRUE, FALSE and UNKNOWN through a filter
  • Choose the right NULL and membership predicate

Lesson outline

  1. Three meanings for a blank-looking value
  2. A filter with a third result
  3. Membership and NULL tests

16 minutes · 8 scenes · 0 predict checks · 11 quiz questions

The full lesson is available with Premium.