This technical problem deals with calculating the average salary for each department using a cursor. Given a table of employees and their salaries, the cursor will iterate over the table and calculate the average salary for each department. The output will be a table with the department ID and the corresponding average salary.
This solution is correct and demonstrates a good understanding of how to calculate averages in SQL.
Evaluated at: 2022-11-11 16:15:19