Chapter 4 · Aggregations
35. Min and Max Billing Amounts
Easy10 XPHealthcare
Finance wants to understand the billing range. For each billing status, return the minimum amount, maximum amount, and average amount (rounded to 2 decimal places).
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.