Is there a way to check both 0 and NULL with a single equality operator?
I understand that I can do this:
WHERE field = 0 OR field IS NULL
But my life would be a hundred times easier if it worked:
WHERE field IN (0, NULL)
(By the way, why doesn't this work?)
I also read about converting NULL to 0 into a SELECT statement (with COALESCE). The framework that I use will also make this unpleasant.
Understand this is strangely specific, but is there a way to check for 0 and NULL the same WHERE predicate?
ack
source share