If your server has a case-insensitive sort order, group by ignores the case of the grouping columns.
select lname, amount from groupdemo
lname amount ---------- ------------------ Smith 10.00 smith 5.00 SMITH 7.00 Levi 9.00 Lévi 20.00
select lname, sum (amount) from groupdemo
lname ---------- ---------------- Levi 9.00 Lévi 20.00 Smith 22.00
lname ---------- ------------------ Levi 29.00 Smith 22.00