Your question is SQL: Customers With Multiple 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.
The Cimpress Technology ordering platform needs to identify VistaPrint customers who placed multiple orders during the same calendar month. Write a PostgreSQL query that returns each qualifying customer, the month, and the number of orders placed during that month.
customers to orders using customer_id.NULL order date.customer_id and month ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(120) | Customer display name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer who placed the order |
| order_date | DATE | Date the order was placed |