i have these on my data base
year | city
2011 | new york
2010 | LA
2010 | LA
2010 | new york
2012 | texas
i have a 2 column contains named year and town_city
and i want to have the highest number of town_city each year .
outout should be
year | city | total
2011 | new york | 1
2010 | LA | 2
2012 | texas | 1
What you can get your desired result using this: