Forum Moderators: open
I have a simple table:
Person {firstname, surname, age, hair color}.
How do I query for the most popular firstname?
ive got:
SELECT firstname, count( firstname )
FROM person
GROUP BY firstname
this displays all the firstnames and the number of times it appears which is fine, but i just want the most submitted firstname to appear. any ideas? would appreciate if somebody could direct me into the right direction.
thanks