Amazon DSP account operations needs to identify customers who have never placed an order so they can be included in onboarding and engagement workflows. An order row counts as an order regardless of its status.
Write a PostgreSQL query that returns every customer from customers who has no matching row in orders.
customer_id, customer_name, and email.customer_id is NULL from matching any customer.customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(150) | Customer or advertiser name |
| VARCHAR(255) | Customer contact email | |
| signup_date | DATE | Date the customer registered |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| order_status | VARCHAR(30) | Current order status |
| order_date | DATE | Date the order was created |