For each customer, assign a sequence number to their orders in chronological order (1st order, 2nd order, etc.). Return customer_id, order_id, order_date, total_amount, and the order_sequence_number.
Schema
🔑idINT
🔗customer_idINT
order_dateTEXT
statusTEXT
total_amountREAL
postgresql
Run your query to see results
Press Ctrl + Enter to execute