Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 306 Bytes

File metadata and controls

16 lines (13 loc) · 306 Bytes

문제보기

🔎문제 풀이 MySQL

SELECT employee_id, department_id
FROM Employee
WHERE primary_flag = 'Y'
UNION
SELECT employee_id, department_id
FROM Employee
GROUP BY employee_id
HAVING COUNT(employee_id) = 1;