Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple query question
Message
De
19/12/1997 12:04:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00067216
Message ID:
00067219
Vues:
14
>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?

What do your results look like? Your query looks ok to me...
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform