Tell me about how you would write a nested SQL query to answer a business question.
Using the supplied customers and orders tables, demonstrate this by identifying customers whose completed order total exceeds the average completed order total across qualifying customers.
customer_id, customer_name, and total_completed_amount.customer_id ascending.| 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 |
| status | VARCHAR(20) | Current order status |
| amount | NUMERIC(12,2) | Order amount |