Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Monthwise Total
Message
De
08/10/2004 12:55:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00949792
Message ID:
00949958
Vues:
13
>>>
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform