View Single Post
  #1  
Old January 22nd 10, 09:09 PM posted to microsoft.public.outlook.program_addins,microsoft.public.sqlserver.programming
Mark B[_2_]
external usenet poster
 
Posts: 93
Default WHERE without using CASE

I'm trying to edit a Filter in Outlook and it has a sort of SQL syntax. The
only thing is I don't know if it accepts CASE statements -- it's giving a
'SQL parsing' error.

Is there another simple SQL way of doing this WHERE clause without using
case (e.g. using AND or OR)?:

WHERE (CASE WHEN (MyField1 IS NULL) THEN (MyField2) ELSE (MyField1))1













My Reference:

(CASE WHEN
("http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/MyField1"
IS NULL) THEN
("http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/MyField2")
ELSE
("http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/MyField1"))1

Ads