Question: Which query below will generate the above cross tabulation? Question 3 options: select item name, color, sum ( quantity ) from sales group by cube

Which query below will generate the above cross tabulation?
Question 3 options:
select item name, color, sum(quantity)
from sales
group by cube(item name, color, clothes_size);
select item name, color, clothes size, sum(quantity)
from sales
group by cube(item name, color, clothes size);
select item name, color, clothes size, sum(quantity)
from sales
group by cube(item name, color);
select item name, color, sum(quantity)
from sales
group by cube(item name, color);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!