Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to implement IIF (immediate IF) in the Select List
Message
 
To
23/02/2005 05:51:10
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, India
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00989543
Message ID:
00989545
Views:
36
>
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform