Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference SQL and VFP
Message
De
08/02/1999 11:26:58
 
 
À
07/02/1999 13:06:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00184820
Message ID:
00185089
Vues:
17
>>
>>select *, sum(uurfact) as fact, SUM(IIF(ureisk='Ja ',1,0)) as reisk from uren where umcode= '20002 ' group by umcode
>>

The TSQL version would look like this:

SELECT *,
SUM(CASE WHEN ureisk = 'Ja ' THEN 1 ELSE 0 END) as ...

HTH

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform