Amazon BIE Phone Interview
Anonymous User
1898

Basic Sql question :

  1. How will you improve performance of table
  2. Where vs Having difference
  3. what is CTE and subquery, When will you use CTE and when will you use Subquery

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)?

Comments (10)