Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Counts
Message
De
12/11/2000 19:26:38
 
 
À
12/11/2000 19:17:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Re: Counts
Divers
Thread ID:
00440828
Message ID:
00440832
Vues:
9
>>>>>>>>>>>>>>>>>>>>>>>>>>>
I'm trying to install some SQL disipline in this place. Is there a SQL statement to return me counts, sums etc by a unique value, say location code for a result set of a query?
>>>>>>>>>>>>>>>>>>>>>>>>>>>

How about:

Select Count(*), Sum(nValue) from MyTable ;
Group By LocationCode


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform