- Impact
- 18
Hi,
I want to look into a mysql database and get the top 50 most regularly occuring fields.
- the field I am looking in is called user_id
- I want to get a list of the top 50 most frequently occuring user_ids in this table, with the amount of times they occur.
For instance:
lets say my table is like this:
and I want to get the most occuring user ID I want to get:
"123456" and "2" (most occuring, and number of times occuring)
How would I do this?
Thanks a lot
Tom
I want to look into a mysql database and get the top 50 most regularly occuring fields.
- the field I am looking in is called user_id
- I want to get a list of the top 50 most frequently occuring user_ids in this table, with the amount of times they occur.
For instance:
lets say my table is like this:
USER_ID | NAME
12345 | Tom
12346 | Mark
12346 | Paul
and I want to get the most occuring user ID I want to get:
"123456" and "2" (most occuring, and number of times occuring)
How would I do this?
Thanks a lot
Tom







