Tell me about how you would approach a SQL test with multiple questions, including writing queries and validating results.
Use the supplied tables to demonstrate one representative query and explain how you would validate its output. Include customers whose completed order value exceeds 100.
customer_name, completed_order_count, total_completed_amount, and latest_completed_order_date.| 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 |
| amount | NUMERIC(10,2) | Order amount |
| status | VARCHAR(20) | Order processing status |
| order_date | DATE | Date the order was placed |