Chapter 4 · Aggregations
43. Total Pending Billing Amount
Easy10 XPHealthcare
The accounts receivable team needs the total dollar amount of all pending bills. Return a single value: the SUM of amount for billing records where status is 'pending'.
Tables
- PKidINT
- FKvisit_id→ visits.idINT
- amountREAL
- insurance_coveredREAL
- patient_responsibilityREAL
- statusTEXT
- billed_atTEXT
- paid_atTEXT
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.