Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF in select
Message
De
18/05/2005 09:27:59
 
 
À
18/05/2005 09:18:33
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Roumanie
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
01015300
Message ID:
01015309
Vues:
24
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 ...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform