A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

WHERE without using CASE



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The case of OnStartupComplete [email protected] Add-ins for Outlook 2 January 14th 09 03:12 PM
The case of the disappearing signature Mike Tordoff Outlook - General Queries 3 March 13th 08 08:03 PM
Outlook PST case tonrado Outlook - General Queries 5 February 22nd 06 04:28 PM
How to sychronize in this case: Josie Walsh Outlook - General Queries 2 February 4th 06 08:22 PM
How to sychronize in this case: Josie Walsh Outlook - Using Contacts 2 February 4th 06 08:22 PM


All times are GMT +1. The time now is 12:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.