Table staff_bonus. Fill a missing bonus with the average bonus of the same department (whole number); if the department has none, use 0. Return emp_id and bonus_filled.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.