SQL Case File: 006

NULL Behavior

An exclusion query that looks obviously true returns no rows because one unknown value poisons the comparison.

  • Answer Space: predict the SQL result before execution.
  • Problem Space: inspect tables, rows, columns, keys, and relationships.
  • Decision Space: choose the relational operations that prove the answer.