Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top 12 records ???
Message
De
22/08/2012 13:50:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Top 12 records ???
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01551046
Message ID:
01551046
Vues:
81
I have a cursor with the following three fields: Part, Month (YYYYMM) and Sales.

The combination of Part + Month is unique, as that has been previously calculated, and there are no records for months where Sales = 0

I need to calculate the sum of sales for the first twelve months that occur in this cursor for each part, answering the question "For each part, what is the total sales for the first twelve months in which sales occurred, recognizing that they might not be consecutive?".

Is there a way to do this in a single statement?
Jim Nelson
Newbury Park, CA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform