Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group By - Continued Help Needed
Message
From
17/03/2004 13:23:39
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
17/03/2004 12:31:17
N. Lea
Nic Cross Enterprises
Valencia, California, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00887107
Message ID:
00887184
Views:
13
>>
Create Cursor Sql_Ap_Pre (Id_Desc C(20), Sum_Ap_Total Y)
>>Insert Into Sql_Ap_Pre Values("AP-MISC", 500.00)
>>Insert Into Sql_Ap_Pre Values("AP-OFFICESUPPLIES", 500.00)
>>Insert Into Sql_Ap_Pre Values("AP-OFFICESUPPLIES", 500.00)
>>Insert Into Sql_Ap_Pre Values("AP-OFFICESUPPLIES", 2000.00)
>>Insert Into Sql_Ap_Pre Values("AP-COMPUTERS", 5000.00)
>>Insert Into Sql_Ap_Pre Values("AP-COMPUTERS", 3000.00)
>>Insert Into Sql_Ap_Pre Values("AP-COMPUTERS", 7000.00)
>>Insert Into Sql_Ap_Pre Values("AP-COMPUTERS", 1500.00)
>>Insert Into Sql_Ap_Pre Values("AP-OFFICESUPPLIES", 50.00)
>>Insert Into Sql_Ap_Pre Values("AP-MISC", 1000.00)
>>
>>Select Id_Desc, Sum(Sum_Ap_Total) AS Totals ;
>>	From Sql_Ap_Pre ;
>>	Where .T. ;
>>	Group By Id_Desc
>
>THANK YOU THANK YOU!!! I KNEW IT WAS SOMETHING STUPID!!

Perhaps "uncomplicated" but not "stupid." < g > SQL is a little hard to learn but once you get it it's a very powerful language to know!
Previous
Reply
Map
View

Click here to load this message in the networking platform