/*Write a query to get the details of employees who manage a department.
*/

    SELECT *   
    FROM employees   
    WHERE employee_id=ANY   
    ( SELECT manager_id FROM departments );