Question: write a statement to create a view called product _ sales _ totals which will group sales data by product and year. Columns should include
write a statement to create a view called productsalestotals which will group sales data by product and year. Columns should include productid year, productsales, and gearsales. The gearsalescolumn will contain the total sales for the "GearLarge" or the total sales for "Gear Small" products, depending on the productid In the case that the product is neither "GearLarge" or "GearSmall", the value for gearsales should be The data should be generated by an expression, and it is ok to use the productid values in the expression To accomplish this, you need a case statement. The productsales column should be a sum of sales for the particular productid and year, regardless of what kind of product it is including gears
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
