SELECT country, product, sum(profit) FROM sales GROUP BY country, product WITH ROLLUP;
Before applying ROLLUP (left) vs ROLLUP applied (right)
countryproductsum (profit) countryproductsum (profit)
FinlandComputer1500 FinlandComputer1500
FinlandPhone110 FinlandPhone110
IndiaCalculator150 FinlandNULL1610
IndiaComputer1200 IndiaCalculator150
USACalculator125 IndiaComputer1200
USAComputer4200 IndiaNULL1350
USATV250 USACalculator125
USAComputer4200
USATV250
USANULL4575
NULLNULL7535
ROLLUP...