MySQL Forums
Forum List  »  Newbie

How to obtain most popular cities from my users table
Posted by: tarmstrong
Date: June 20, 2005 09:45AM

Hi.

I've got a 'users' table:

USER_ID --- CITY_ID
1 ---- 32
2 ---- 20
3----- 32
4 ---- 32
5 ----- 17
....

I would like to obtain the most popular cities from this table, and the number of occurrences. Is this possible to make it easy with an SQL statement?

Thx

Options: ReplyQuote


Subject
Written By
Posted
How to obtain most popular cities from my users table
June 20, 2005 09:45AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.