
문제
https://leetcode.com/problems/replace-employee-id-with-the-unique-identifier/description/
문제 설명
- 두 개의 테이블이 주어졌을 때,
- Employees (컬럼 : id, name)
- EmployeeUN (컬럼 : id, unique_id)
- 모든 직원의 unique_id와 name을 출력
- unique_id가 없는 경우 null을 출력
정답 코드
SELECT u.unique_id, e.name
FROM employees AS e LEFT JOIN employeeuni AS u on e.id = u.id'코딩 테스트 연습 > [프로그래머스][리트코드] MySQL' 카테고리의 다른 글
| 1581. Customer Who Visited but Did Not Make Any Transactions (0) | 2025.08.19 |
|---|---|
| 1068. Product Sales Analysis I (1) | 2025.08.15 |
| 1683. Invalid Tweets (0) | 2025.08.11 |
| 1148. Article Views I (1) | 2025.08.07 |
| 595. Big Countries (1) | 2025.08.05 |