Level exam: the customer order history

Your task Ticket HS-330, for the account managers. For every order, show customer_id, id, order_date, total (the order's value), customer_running (that customer's running total, by date then id) and size_rank (the order's RANK() by total, biggest first, among that customer's orders). Sort by customer_id, then order_date, then id. In the code box, write the query, then press Run my code.

Getting the editor ready