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 ROLLUP
select nvl(name, 'SUM'), count(*) from table group by rollup(name)