Question: Write a SQL statement that answers this question: Which product was purchased by more than one customer Product_name product name Number_of_orders_items - number of order
Write a SQL statement that answers this question: Which product was purchased by more than one customer Product_name product name Number_of_orders_items - number of order line items that purchased per product Number_of_distinct_customers number of distinct customers purchased the product (8 points) HINT You will need to join 4 tables Dont forget to do group by, figuring out correct group by column is important To count order items, count number of item_id in the order_items table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
