Each Order's Share of Customer Spend
MediumDescription
For customers 1 and 2, show customer_id, order_id, total_amount and
pct_of_customer: the order's total_amount as a percentage of that customer's total over all
their orders, rounded to 2 decimal places.
End your query with ORDER BY customer_id, order_id.
Tables
| orders |
|---|
| order_id (PK) |
| customer_id (FK) |
| total_amount |