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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Case Question

Author  Topic 

midpenntech
Posting Yak Master

137 Posts

Posted - 2008-10-10 : 11:16:28
I have this statement and it has 2 times i can to go off of but not sure how its written.

CASE WHEN eqpstatus = 'OR' THEN eqprecdt END AS Deldate

I want it to say Case WHEN eqpstatus = 'OR' or 'RE' THEN eqprecdt END as Deldate.

This should be very easy

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-10-10 : 11:19:45
Case WHEN eqpstatus in ('OR' ,'RE') THEN eqprecdt END as Deldate

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

midpenntech
Posting Yak Master

137 Posts

Posted - 2008-10-10 : 11:36:12
worked i knew it would be something really easy lol. Thanks again.
Go to Top of Page
   

- Advertisement -