Answer the question
In order to leave comments, you need to log in
An error is thrown while executing the request. What is the problem?
Select employees who receive the highest salary for their work experience (experience - accurate to the nearest year).
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)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question