Tell me about a time you typed and debugged a SQL query to answer a business question.
Use the provided customers and orders tables for the hands-on portion. Return customer-level order metrics for active customers and qualifying orders dated in the first quarter of 2025.
customer_name, region, order_count, total_spend, and spend_band.High for totals of at least 500, Medium for totals from 250 through 499.99, and No spend otherwise.total_spend descending, then customer_name ascending.order_status equals completed.2025-01-01 and exclusive of 2025-04-01.order_count 0 and total_spend 0.00.0.00, including orders whose amounts are NULL.region rather than replacing them.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| region | VARCHAR(50) | Customer geographic region |
| account_status | VARCHAR(20) | Current customer account status |
| 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_status | VARCHAR(20) | Current order status |
| amount | DECIMAL(10,2) | Order amount |