J
jeremy
Video
How a NULL in a Subquery Makes SQL NOT IN Return Zero Rows Under Three-Valued Logic
SQL evaluates predicates in three-valued logic, where any comparison involving NULL yields UNKNOWN rather than TRUE or FALSE, and a WHERE clause admits a row only when its predicate evaluates to TRUE…