Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Monthwise Total
Message
From
08/10/2004 12:55:17
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00949792
Message ID:
00949958
Views:
14
>>>
>>>select left(cmonth(Date),3) as MonthName, sum(weight) as WeightTotal, sum(cash) as CashTotal ;
>>>group by 1 into cursor curTotal
>>>
>>
>>What about different years? His data seems to have more than one year involved.
>
>Stupid me, of course I forgot about it.
>
>
>select year(date) as Year, left(cmonth(Date),3) as MonthName, sum(weight) as WeightTotal, sum(cash) as CashTotal ;
>group by 1,2  into cursor curTotal
Much better. < g >
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform