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:
00470976
Views:
40
>this is really close, the only problem is that there can be more than one city name in two different states. like a boston, MA and a boston, NY or something. and they need to be treated seperately. thanks for your help so much!
>Ryan
Ok. try again with
SELECT State, PADR(City,30), COUNT(*) AS Hits ;
  FROM MyTable ;
  ORDER BY Hits DESC ;
  GROUP BY State, City
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform