Within each department (not NULL), order people by hire date and show dept_id, first_name, hire_date and the payroll after each hire as payroll_after.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.