Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple query question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Simple query question
Divers
Thread ID:
00067216
Message ID:
00067216
Vues:
49
I have a simple query question. I know that I've done this before, but for the life of me I can't remember. I must have a brain cloud today.

Table with two fields to be included in the query output: Date, Amount
Hundreds of transactions for each day.

I want to do a query with the end result being the total amount for each date.
My first crack at this was to create a query grouping the Date field and having the expression sum(amount). This gave me numbers that were way out of whack.

Here is the SQL from the existing query:

SELECT Orders.date, SUM(Orders.total);
FROM cash!orders;
GROUP BY Orders.date;
ORDER BY Orders.date;
INTO TABLE ted1.dbf

What am I missing?
Al Williams

Anola MB, CANADA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform