Question: 2 . Write a SELECT statement that returns one row for each category along with the number of product ids that are associated with that

2. Write a SELECT statement that returns one row for each category along with the number of product
ids that are associated with that category.
3. Modify your query from part 2 by adding an additional join to the order_items table and add an
additional field that shows the total quantity sold for each product category. Sort the result set so the
category with the most products appears first.
Using ryan_guitar_shop

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 Programming Questions!