I must to check if two values, X and Y are different. If both are null, they must be considered as equal.
The unique way I found is:
select 1 as valu
You can use ISNULL
ISNULL
WHERE ISNULL(@X,'') <> ISNULL(@Y,'')