• I said use IS NULL to compare.

    For example:

    CASE WHEN myColumn IS NULL THEN do something ELSE do something else END

    You cannot compare columns directly with NULL (myColumn = NULL will always return false).

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP