Create a running total of completed payments over time. For each completed payment, show the payment_date, amount, and a cumulative sum of amounts ordered by payment_date. Sort by payment_date.
Schema
🔑idINT
🔗order_idINT
payment_dateTEXT
amountREAL
methodTEXT
statusTEXT
postgresql
Run your query to see results
Press Ctrl + Enter to execute