Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Code This VFP IIF Statement In SQL
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01326128
Message ID:
01326135
Vues:
17
This message has been marked as the solution to the initial question of the thread.
See corrections below

>The problem now is that SQL doesn't seem to like the 'AND' in the second CASE line.
>
CASE 
	WHEN tr.sTrans_Type_CD ='PR' THEN tr.decTrans_Qty
	WHEN (tr.sTrans_Type_CD = 'PT' AND tr.decTrans_Qty > 0) THEN tr.decTrans_Qty
>	ELSE 0
>END AS Receipt
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform