Try something like:
SELECT *
FROM TABLE1
WHERE (COLUMN1 IN ('YES', 'NO') OR COLUMN1 IS NULL)
Here the expression will parse as COLUMN1 = 'YES' or COLUMN1 = 'NO' or field = 'NULL'. Entering NULL will give you COLUMN1 = null, which won't work.
source
to share