Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data query question
Message
De
03/08/2000 06:53:02
 
 
À
02/08/2000 22:53:08
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00399991
Message ID:
00400269
Vues:
23
Thanks Cindy! Will look into this.

What do you mean by ** Air Code Warning **? That the query built is very long? It would be best if the categories were very short, such as '01'.

Alex


>Alejandro,
>
>I've done a lot of these. ** Air Code Warning! **
>
>
>SELECT Batch#, Trans#, ;
>    SUM(IIF(Category = "RegTime", GrandChild.Quantity, 0)) AS RegTime_amt, ;
>    SUM(IIF(Category = "Absence", GrandChild.Quantity, 0)) AS Absence_amt, ;
>    ... ;
>    FROM < be sure to include the parent tables with the proper joins > ;
>    INTO CURSOR MyCursor ;
>    GROUP BY Batch#, Trans#
>
>
>I think this will give you the general idea.
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform