Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data query question
Message
From
03/08/2000 06:53:02
 
 
To
02/08/2000 22:53:08
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00399991
Message ID:
00400269
Views:
22
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.
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform