EASYVerified Real Interview• Data Analyst / BIE

Purchased Products With Zero Customer Reviews

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_id INT, customer_id INT, product_id INT, order_date DATE)
  • product_reviews (review_id INT, customer_id INT, product_id INT, rating INT)

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
⌘↵ Run Query
Ready to execute. Press Run (⌘+Enter)
Write your query and click “Run” or press ⌘+Enter to inspect output.