how to sum two aggregate sums in sql code example Example: sql sum and other fields SELECT sum(a) as car,b,c FROM toys GROUP BY b, c