Introduction
ROWS
RANGE
Default window frame
Summary
23. Exercise 1

Instruction

Let's start with the first question!

Exercise

For each row from the department where DepartmentId = 2, show its DepartmentId, Year, Amount, and the total amount from the current year plus and the two previous years. Name the column TotalAmount.