Mondeo
Well-known member
I have an SQL table with a column called Town, it looks something like this
Burnley
Burnley
Burnley
Blackburn
Preston
Colne
Colne
Preston
Blackburn
I need to get the counts of each town in the database so I want my results to look like this
Burnley 3
Blackburn 2
Preston 2
Colne 2
Is there anyway I can do it just using a plain SQL statement?
Thanks
Burnley
Burnley
Burnley
Blackburn
Preston
Colne
Colne
Preston
Blackburn
I need to get the counts of each town in the database so I want my results to look like this
Burnley 3
Blackburn 2
Preston 2
Colne 2
Is there anyway I can do it just using a plain SQL statement?
Thanks