Basic Sql question :
SQL live coding session:
Given following 2 tables :
Prime (Customerid,prime_Status,start_date,end_date)
Sales (customerid,orderid,orderday,productid,quanity sold)
Question 1: How many units were sold on each of the last 7 days?
Question 2: How many unique customers made a purchase 15 days ago and how many were prime members?
Question 3: Which customer purchased the most units on each of the last 5 days (assume no ties)?