Write a SQL query to find the top 5 customers by revenue this month.
Use the customers and orders tables. Revenue includes only completed orders dated within the current calendar month. Exclude cancelled orders and orders without a matching customer.
customer_id, customer_name, and total_revenuetotal_revenue descending, then customer_id ascending for ties| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| order_date | DATE | Date the order was placed |
| order_total | DECIMAL(12,2) | Revenue amount for the order |
| status | VARCHAR(20) | Order status |