Problems / Dormant Users Report / Editorial
MAX(event_time)
users
activity
la.user_id IS NULL OR days_dormant > 14
IS NULL
NULL > 14
user_id
"Inactive" reports ask about entities defined by the absence of facts, and three-valued logic is where they break: every comparison against NULL is unknown, and WHERE discards unknowns. The pattern to internalize — LEFT JOIN from the dimension, then filter with an explicit IS NULL OR <condition> — keeps both flavors of dormancy (long-ago and never) in one honest query.
IS NULL OR <condition>
Solve Dormant Users Report yourself →