Home › Interview Questions › Calculate the average billing commission by depart…

Calculate the average billing commission by department.

🟡 Medium Coding Junior level
1Times asked
May 2026Last seen
May 2026First seen

💡 Model Answer

To compute the average billing amount per department, join visits and billing, group by department, and use AVG. Example:

SELECT v.department,

   AVG(b.amount) AS avg_billing

FROM visits v

JOIN billing b ON v.visit_id = b.visit_id

GROUP BY v.department;

This gives the mean billing amount for each department.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.

Get Assisting AI — Starts at ₹500