Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Code This VFP IIF Statement In SQL
Message
 
 
À
23/06/2008 13:11:36
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01326128
Message ID:
01326153
Vues:
24
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform