Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Code This VFP IIF Statement In SQL
Message
 
 
To
23/06/2008 13:11:36
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01326128
Message ID:
01326153
Views:
23
>>>Actually he's trying to use a boolean expresion in a simple case statement. I was correcting my answer when you replied. Sergey already gave him the correct answer.
>>>
>>>
>>I did too just few seconds later. I didn't see Sergey's response when I replied.
>
>Yes you did!
>
>Sergy's fast, half the time I go to answer something in the VFP area and he's already done it.
>
>Since both whens return the same value I don't see what was wrong with Sergey's first answer.
>
>CASE WHEN (TRANCODE = 'PR') OR (TRANCODE = 'PT' AND TRANQUANT > 0) THEN TRANQUANT
> ELSE 0 END AS Recepit

I actually don't see a problem here either. I think this should work the same way as the latest 2 case statement answer. But I didn't try it.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform