Haven't tried this but (you don't need DISTINCT on a selected element included in the group by)SELECT name, case when country ='US' then 'USA' ELSE 'Other' end AS area,OrderTotal,OrderSumFROM ( select DISTINCT(cu.name, t.country count(distinct(t.orderref)) AS OrderTotal, sum(ordercost) as OrderSum, case when t.country ='US' then 'USA' when t.country <> 'US' then 'Other' end AS area from ordertable t left outer join customer cu on t.customerid=cu.id where t.orderdate >='2003-09-01' and t.orderdate<='2003-09-30 23:59:59' group by cu.name, t.country) Xorder by name