What SQL basics and BI basics have you worked with?
For the SQL portion, write a query against orders that summarizes completed orders by customer. Exclude rows without a customer name and return the five customers with the highest total spending.
customer_name, order_count, total_spent, and average_order_value.customer_name; order by total spent descending, then customer name ascending, and return five rows.| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_name | VARCHAR(50) | Customer associated with the order |
| amount | NUMERIC(12,2) | Order amount |
| status | VARCHAR(40) | Current order status |