As a corollary to three-valued logic expressed in the previous blog, NOT IN comparisons are a regular source of surprise. Consider this comparison of one against various values:
SELECT 12 AND 13; ?column? ---------- t SELECT 12 AND 13 AND 1NULL; ?column? ---------- (null)