Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF in select
Message
From
18/05/2005 09:18:33
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
IIF in select
Miscellaneous
Thread ID:
01015300
Message ID:
01015300
Views:
77
Hi,

How to put in SQL a query that in VFP look like this?

SELECT iddoc, SUM(IIF(testval=0,quantity,o)) as q0, SUM(IIF(testval=1,quantity,0)) as q1 FROM doctable

Thanks in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform