SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id
get the details of employees who manage a department.
SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id
select distinct * from employees as t1 join departments as t2 on t1 . department_id = t2 . department_id where t1 . employee_id = t2 . manager_id
get the details of employees who manage a department .