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