Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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