Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counts
Message
From
12/11/2000 19:26:38
 
 
To
12/11/2000 19:17:13
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Counts
Miscellaneous
Thread ID:
00440828
Message ID:
00440832
Views:
14
>>>>>>>>>>>>>>>>>>>>>>>>>>>
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
Previous
Reply
Map
View

Click here to load this message in the networking platform