Introduction
ROWS
RANGE
Default window frame
Summary
25. Exercise 3

Instruction

Good job! Here's the last exercise.

Exercise

For each row, show its DepartmentId, Year (show rows by Year), Amount, the average amount from all departments in the given year (AvgAmount), and the difference (as Difference) between that amount and the average amount.