Write a SQL query to analyze operational performance by region and month, joining orders, technicians, and customer tables to calculate completion rate and average turnaround time.
region, order_month, total_orders, completed_orders, completion_rate, average_turnaround_days, and technicians_assigned.Unknown, calculate turnaround only for completed orders with completion timestamps, and sort by region and month ascending.| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| technician_id | INT | Assigned technician identifier |
| order_date | TIMESTAMP | Timestamp when the order was created |
| completed_at | TIMESTAMP | Timestamp when the order was completed |
| status | VARCHAR(20) | Current order status |
| Column | Type | Description |
|---|---|---|
| technician_idPK | INT | Unique technician identifier |
| technician_name | VARCHAR(100) | Technician full name |
| specialty | VARCHAR(80) | Primary service specialty |
| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(120) | Customer name |
| region | VARCHAR(40) | Customer service region |