Position: Data Engineer
I feel there is not much information out there for amazon DE interviews , So wanted to give back to the community. I recently had interview with Amazon for DE roleand I was asked these SQL questions
Lets say if we have streaming and content tables as below:
STREAMS
Stream_date Customer_id Content_ID Marketplace_ID device_type
2012-02-01 12345 SRT123 US ipad
2012-02-01 67890 SRT123 UK TV
2012-02-01 98765 XYZ123 US iphone
Content
Content_ID KIDS_CONTENT Content_type
SRT123 Y series
XYZ123 N movie
ABC123 Y movieWrite a query to get the number of unique kid friendly titles that were streamed last month
Customers who watched kids friendly movie but never watched any Series
Write a query to get a list of all customers who watched at least a one kid friendly movie every week in last 3 months
Hope this helps the community!