Each Customer's Order Number
EasyDescription
For customers 1 and 2, show customer_id, order_id, order_date and
order_number: 1 for the customer's first order, 2 for their second, and so on, counting by
order_date and then order_id.
End your query with ORDER BY customer_id, order_number.
Tables
| orders |
|---|
| order_id (PK) |
| customer_id (FK) |
| order_date |