Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started