• If I'm not mistaken, you want COALESCE as equvivalent to ISNULL, not NULLIF

    NULLIF does not do the same thing as ISNULL.

    /Kenneth