Hi everyone,
Let's say I have a column with names in it. Let's say I have 1000 or so records. Now I want to be able to find the name that appears the most. Let's say John appears 900 times, Rich 20 times, and other 1 time.
How do I get the result to ONLY show John, since it occurred the most times in the column?
I know COUNT(name) will give me the amount of times they occur, but I need to limit it down to only the one name...
Maybe a PHP function to filter the array? If not, can I do this in the MySQL query only?
Thank in advance for your help and time.
SC