Given a scenario with two tables, Orders and Customers, write a query using GROUP BY and HAVING to identify customers who have placed more than five orders in the last month.
Assume "last month" means the previous calendar month relative to the database's current date. Include only orders placed during that period.
customer_id, customer_name, and order_count.order_count descending and customer_id ascending for ties.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer's full name |
| market | VARCHAR(50) | Customer market or region |
| 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 |