Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Code This VFP IIF Statement In SQL
Message
From
23/06/2008 13:11:36
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01326128
Message ID:
01326151
Views:
19
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform