Skip to main content
All Problems
hard0% acceptance

Visits Billed Above Department Average

Find visits where the billing amount exceeds the average billing amount for that doctor's department. Return the visit_id, billing amount, department name, and the department average.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
specialtyTEXT
🔗department_idINT
emailTEXT
phoneTEXT
hire_dateTEXT
salaryREAL
postgresql

Run your query to see results

Press Ctrl + Enter to execute