Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Counting occurences
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00470932
Message ID:
00470973
Vues:
28
Ryan,

You need to include all of your differentiating criteria in the group by clause:
SELECT PADR(City,30) as city, state, COUNT(*) AS Hits ;
  FROM MyTable ;
  ORDER BY Hits DESC ;
  GROUP BY City, State
Cheers,

Andrew
>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


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform