Как заставить сотрудника иметь максимальный опыт в MySQL

select max(salary), dept_id from employee where salary not in(select max(salary) from employee) group by dept_id;
Horrible Hedgehog