Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ANSI_NULLS comparison problem
Message
 
 
To
30/01/2007 03:29:33
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01190063
Message ID:
01190409
Views:
18
You're welcome.

>
>In so many words - Thank's!
>
>>The ELSE in the first example is never executed when SET ANSI_NULLS OFF.
>>SELECT #Temp.*,
>>   CASE WHEN (#Temp.S1 = #Temp.S2) OR COALESCE(#Temp.S1,#Temp.S2) IS  NULL THEN 1
>>        ELSE 2  END AS S3 From #Temp
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform