Your question is Customers Purchased in January Only. 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.
Kotak's analytics team wants to identify customers who purchased through Kotak's digital commerce channel in January 2025 but made no purchase in February 2025. Write a PostgreSQL query using the customers and purchases tables.
customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INTEGER | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer's full name |
| segment | VARCHAR(30) | Customer segment |
| Column | Type | Description |
|---|---|---|
| purchase_idPK | INTEGER | Unique purchase identifier |
| customer_id | INTEGER | Customer associated with the purchase |
| purchase_date | DATE | Date on which the purchase occurred |
| amount | NUMERIC(12,2) | Purchase amount |
| channel | VARCHAR(30) | Purchase channel |