Skip to main content
All Problems
hard0% acceptance

Running Total of Billing Amounts

Calculate a running total of billing amounts ordered by billed_at date. Return the billing id, billed_at, amount, and the cumulative total up to and including that row.

Schema

🔑idINT
🔗visit_idINT
amountREAL
insurance_coveredREAL
patient_responsibilityREAL
statusTEXT
billed_atTEXT
paid_atTEXTNULL
postgresql

Run your query to see results

Press Ctrl + Enter to execute