CREATE TABLE departments (department_id VARCHAR(255), manager_id VARCHAR(255)); CREATE TABLE employees (department_id VARCHAR(255), employee_id VARCHAR(255))
get the details of employees who manage a department.
    
SQL: SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id