Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crosstab mania?
Message
De
16/07/1999 16:13:59
 
 
À
16/07/1999 14:13:09
J Chris Powell
Myers and Stauffer Lc
Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00242206
Message ID:
00242555
Vues:
34
>You can put imbedded IIF statements to get the results..
>
>SELECT artnr, ;
>SUM(IIF(MONTH(date)=1,1,0)) AS Jan, ;
>SUM(IIF(MONTH(date)=2,1,0)) AS Feb, ;
> etc ;
> FROM MyTable GROUP BY artnr
>
>I had a tip to this effect in sept 98 FP Advisor

Neat tip. Thanks! Now if I'll only be able to remember it when *I* need it!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform