<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Write a sql query to find all employees who have the same job and department.
<|im_end|>
<|im_start|>assistant
SELECT * 
FROM Employees 
WHERE Department IN (SELECT Department 
                     FROM Employees 
                     GROUP BY Department 
                     HAVING COUNT(DISTINCT Job) = 1) 
AND Job IN (SELECT Job
            FROM Employees
            GROUP BY Job
            HAVING COUNT(DISTINCT Department) = 1)<|im_end|>
