Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
mmkrishna1919
Yak Posting Veteran
95 Posts |
Posted - 2014-09-12 : 04:41:42
|
Hi Team,Script #1:goset ansi_nulls offgoDeclare @var1 int =NULL,@var2 int =NULLif @var1 = @var2print 'Null equals to Null is true'elseprint 'Null equals to Null is false'goOutput:Null equals to Null is trueScript #2:goset ansi_nulls offgoDeclare @var1 int =NULL,@var2 int =NULLif @var1 >= @var2print 'Null grater than or equals to Null is true'elseprint 'Null grater than or equals to Null is false'goOutput:Null grater than or equals to Null is falseWhen SET ANSI_NULLS OFF and both operands are NULL, (NULL=NULL) is true and (NULL>=NULL) is False. How can we undersatnd the second condition (NULL>=NULL) this has to verify both > and = conditions,for Equal(=) it should return True?M.MURALI kRISHNA |
|
Arun Babu N
Starting Member
26 Posts |
|
mmkrishna1919
Yak Posting Veteran
95 Posts |
Posted - 2014-09-16 : 09:01:32
|
Thanks Arun for Reply, it seems the statement is wrong in sql server 2000 documentation.M.MURALI kRISHNA |
|
|
Arun Babu N
Starting Member
26 Posts |
Posted - 2014-09-16 : 09:04:11
|
yesarunbabu |
|
|
|
|
|