EASYVerified Real Interview• Data Analyst / BIE
Purchased Products With Zero Customer Reviews
Verified Source:Public Candidate Interview Report
Amazon Marketplace wants to target customers with automated review request emails.
Write a SQL query to find all orders where the customer has never written a product review for that item.
Return customer_id, product_id, and order_date.
Sort by order_date descending, then by customer_id ascending.
Tables:
customer_orders(order_idINT,customer_idINT,product_idINT,order_dateDATE)product_reviews(review_idINT,customer_idINT,product_idINT,ratingINT)
Execution Sandbox:
Your query executes inside an isolated in-memory PostgreSQL engine (PGlite WebAssembly). You have full access to standard PostgreSQL aggregations, window functions, and CTEs.
Standard SQL (ANSI)|Ln 1, Col 1(7 lines, 125 chars)
Tab Indent⌘↵ Run Query
Ready to execute. Press Run (⌘+Enter)
Write your query and click “Run” or press ⌘+Enter to inspect output.