Chapter 5 · JOINs
11. Customers Who Never Ordered
Medium20 XPE-Commerce
The re-engagement team wants to target customers who registered but have never placed an order. Find all customers with no matching orders. Return their id, first_name, last_name, and email.
Tables
- PKidINT
- first_nameTEXT
- last_nameTEXT
- emailTEXT
- phoneTEXT
- cityTEXT
- stateTEXT
- countryTEXT
- created_atTIMESTAMP
- PKidINT
- FKcustomer_id→ customers.idINT
- order_dateTEXT
- statusTEXT
- total_amountREAL
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.