Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting occurences
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00470932
Message ID:
00471361
Views:
26
>thanks so much for the info, it worked.
>now there is one more thing that i need to do, i need to add up total minutes for each city as well and put it in a column.
>
>SELECT State, PADR(City,30), COUNT(*) AS Hits, sum(call_duration) as minutes ;
> FROM MyTable ;
> ORDER BY Hits DESC ;
> GROUP BY State, City
>
>would that work?
>Ryan
SELECT State, PADR(City,30) AS City, ;
  COUNT(*) AS Hits, ;
  SUM(Call_Duration) as Minutes ;
  FROM MyTable ;
  <b>ORDER BY Minutes DESC</b> ;
  GROUP BY State, City
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform