SELECT last_name,YEAR(hire_date) AS [Year]
From employee
WHERE YEAR(hire_date) IN (
SELECT MAX(salary), YEAR(hire_date) AS [Year]
FROM employee
GROUP BY YEAR(hire_date)
)
GROUP BY last_name, YEAR(hire_date)
SELECT MAX(salary), YEAR(hire_date) AS [Year]
FROM employee
GROUP BY YEAR(hire_date)