SQL NULL Semantics

Created by Abhyuday DesaiPublished , v1Runs 7 min 38 sec
0 views

About this video

NULL means unknown, not empty, and most of the silent wrong answers in SQL interviews come from forgetting that. Two small tables, one with a missing city and one with a guest checkout, show every case.

You'll review how to:

  • Read three-valued logic and why WHERE keeps only rows that test TRUE
  • Test for NULL with IS NULL and IS NOT NULL, and supply defaults with COALESCE
  • See which rows an inequality filter, an aggregate or a GROUP BY quietly drops or keeps
  • Avoid the NOT IN trap when the list can contain NULL, and place a LEFT JOIN filter in ON rather than WHERE

For engineers who know SELECT, WHERE, GROUP BY and basic joins. The classic silent-wrong-answer trap, worked end to end.

What changed

  1. v103 Oct 2026abhydesai7 min 38 sec037acd5

    First published version.

    0 views0 likes on this version