dbTalk Databases Forums  

IIF AND

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss IIF AND in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jerstep@yahoo.com
 
Posts: n/a

Default IIF AND - 05-20-2005 , 05:02 AM






Hello.

How would I add a second condition to the IIF() function, without using
nested IIF() functions ?

i.e.

IIF(A,X,Z)

I would like

IIf(A AND B,X,Y)

Any ideas ?

Regards,
James


Reply With Quote
  #2  
Old   
jerstep@yahoo.com
 
Posts: n/a

Default Re: IIF AND - 05-20-2005 , 06:44 AM






Forget it. iif(A and B,X,Y) actually works. For some reason it didn't
when I first tried.


Reply With Quote
Reply




Thread Tools
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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.