I have a table with 2 fields:
ID Name -- ------- 1 Alpha 2 Beta 3 Beta 4 Beta 5 Charlie 6 Charlie
I want to group them by name, with \'co
You can use union to joining rows.
select Name, count(*) as Count from yourTable group by Name union all select "SUM" as Name, count(*) as Count from yourTable