# Workers Earning Above Department Average

> Earning above the department average.

Canonical URL: <https://datadriven.io/problems/workers_earning_above_department_average>

Domain: SQL · Difficulty: medium · Seniority: L4

## Problem

Inner-join products to transactions on product_id. Per (product_id, product_name), count transactions. Return product_name and transaction_count. Sort by product_id ascending.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/workers_earning_above_department_average)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.