Metric Trend by Department
A easy SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- easy
- Seniority
- L3
Problem
The VP of Engineering wants a quick read on how each department's tracked metric has moved over time. For each department and fiscal_year, compute the average metric value. Return department, fiscal_year, and the average, ordered by department then year.
Summary
How each team's numbers moved, year over year.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.