Question: sql query for Scenario 3 : You are a data analyst for a Manufacturer. Use the Northwind database, and use the SQL query answer from
sql query for Scenario : You are a data analyst for a Manufacturer.
Use the Northwind database, and use the SQL query answer from question as a starting point.
All of the reported products sold in scenario belong to a category.
Management wants to know from all of the products reported in scenario how much did the customer spend in each product category?
The query will be similar to the previous query, but you will have to make a few adjustments to get categorylevel information.
Report Requirements:
Your report should show the customers name, the category name, and total cost unit price quantity discount spent in each product category.
For example, if the customer purchased products in the 'Confections' category, you will show one row with the customers name, the category name, and a single total cost.
The report should reflect just the products whose product name begins with the letter s or t make sure it is case insensitive
The report should also filter just the category totals where the customer spent more than $ in that category.
The report should be sorted by customer name, total cost descending, and category name.
Lastly, the total cost should be rounded to decimals.
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
