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
Please run as below :
Select sum(count) from (select Name, count(Name) as Count from YourTable group by Name); -- 6