
Write a solution to show the unique ID of each user, If a user does not have a unique ID replace just show null.
Return the result table in any order.
문제링크
조건정리
풀이
unique_id 가 없는 경우가 있으니까 left join 기준을 employeeuni로 잡고 join
출력값 넣어주면 끝
SELECT u.unique_id, e.name
FROM employees e
LEFT JOIN employeeuni u ON e.id = u.id