select product, country , year, sum(profit) from sales group by product, country, year with cube;
This version of MySQL doesn't yet support 'CUBE',
This version of MySQL doesn't yet support 'CUBE'
explain select product, country , year, sum(profit) from sales group by product, country, year with cube;
This version of MySQL doesn't yet support 'CUBE',
This version of MySQL doesn't yet support 'CUBE'
select product, country , year, sum(profit) from sales group by product, country, year with rollup;
This version of MySQL doesn't yet support 'ROLLUP',
This version of MySQL doesn't yet support 'ROLLUP'
explain select product, country , year, sum(profit) from sales group by product, country, year with rollup;
This version of MySQL doesn't yet support 'ROLLUP',
This version of MySQL doesn't yet support 'ROLLUP'
select product, country , year, sum(profit) from sales group by product, country, year with cube union all select product, country , year, sum(profit) from sales group by product, country, year with rollup;