select countryID,count(countryID) as numberOfLusers
from tableThatLooksLikeThis
group by countryID
order by 2 desc
Topplista
3 svar · 165 visningar · startad av Andy
SELECT CountryID, COUNT(*) AS Antal FROM tblTable GROUP BY CountryID, ORDER BY Antal DESC
Om du använder Access så får du köra ORDER BY 2 DESC istället.
Mvh,
Tack! Skall testa så fort jag får möjlighet...
