Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF in select
Message
From
18/05/2005 09:27:59
 
 
To
18/05/2005 09:18:33
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01015300
Message ID:
01015309
Views:
23
This message has been marked as the solution to the initial question of the thread.
>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.
.... SUM(CASE WHEN testval=0 THEN quantity END) as q0 ...
Previous
Reply
Map
View

Click here to load this message in the networking platform