Im trying to compare 2 values -1 is null and other is numeric, but it somehow equals to "equal"
declare @value1 int;
declare @value2 int;
select @value1 = null
select @value2 = 1
if (@value1 <> @value2)
print 'not equal'
else
print 'equal'
Result: Equal