I have a table like this:
Column | Type | Modifiers ---------+------+----------- country | text | food_id | int | eaten | date |
try this:
Select Country, Food_id From Munch T1 Where Food_id= (Select Food_id from Munch T2 where T1.Country= T2.Country group by Food_id order by count(Food_id) desc limit 1) group by Country, Food_id