Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to implement IIF (immediate IF) in the Select List
Message
De
23/02/2005 06:22:16
 
 
À
23/02/2005 05:51:10
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, Inde
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00989543
Message ID:
00989545
Vues:
38
>
SELECT ItemCode, CASE WHEN XnType='PUR' THEN  XnQty ELSE 0 END AS Purchase,
                 CASE WHEN XnType='SLS' THEN  XnQty ELSE 0 END AS Sale
FROM rf
GROUP BY ItemCode
Something like that
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform