Affirm wants to identify customers who completed multiple purchases through Affirm Checkout during the 12 months ending 2025-01-15. Write a PostgreSQL query that returns one row per qualifying customer.
status = 'completed' from 2024-01-15 through 2025-01-15, inclusive.| Column | Type | Description |
|---|---|---|
| customer_idPK | INTEGER | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer's display name |
| VARCHAR(255) | Customer email address |
| Column | Type | Description |
|---|---|---|
| purchase_idPK | INTEGER | Unique purchase identifier |
| customer_id | INTEGER | Customer associated with the purchase |
| purchase_date | DATE | Date the purchase was submitted |
| amount | NUMERIC(10,2) | Purchase amount |
| status | VARCHAR(20) | Purchase processing status |