Your question is Customers With No Recent Orders. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Vanguard Personal Investor wants to identify customers who may need re-engagement. Using the customer and order data below, write a PostgreSQL query that finds every customer who has not placed an order during the six-month period ending on 2026-08-29.
NULL order date as not occurring within the six-month period.| Column | Type | Description |
|---|---|---|
| customer_idPK | INTEGER | Unique Vanguard customer identifier |
| customer_name | VARCHAR(100) | Customer's full name |
| joined_date | DATE | Date the customer joined Vanguard Personal Investor |
| Column | Type | Description |
|---|---|---|
| order_idPK | INTEGER | Unique order identifier |
| customer_id | INTEGER | Customer who placed the order |
| order_date | DATE | Date the order was placed |
| order_status | VARCHAR(20) | Current order status |