Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 파이썬
- Counting
- two pointers
- Stack
- greedy
- 자바
- dynamic programming
- Binary Tree
- SQL
- array
- 코딩테스트
- implement
- java
- database
- hash table
- Matrix
- bit manipulation
- Math
- geometry
- 코테
- Data Structure
- 구현
- Class
- Binary Search
- sorting
- simulation
- Method
- Number Theory
- Tree
- string
Archives
- Today
- Total
코린이의 소소한 공부노트
[LeetCode/Easy] 1378. Replace Employee ID With The Unique Identifier 본문
코딩테스트 풀이/SQL
[LeetCode/Easy] 1378. Replace Employee ID With The Unique Identifier
무지맘 2023. 4. 11. 16:301. Input
1) Table: Employees (pk: id)
2) Table: EmployeeUNI (pk: (id, unique_id))
2. Output
1) unique_id와 이름을 출력한다.
- unique_id가 없을 경우 null을 출력한다.
- 출력 순서는 상관 없다.
3. Example
4. Code
1) 첫 코드(2023/04/11)
select u.unique_id, e.name
from Employees e
left outer join EmployeeUNI u on e.id = u.id
'코딩테스트 풀이 > SQL' 카테고리의 다른 글
[LeetCode/Easy] 1693. Daily Leads and Partners (0) | 2023.04.15 |
---|---|
[LeetCode/Easy] 1683. Invalid Tweets (0) | 2023.04.15 |
[LeetCode/Easy] 1148. Article Views I (0) | 2023.04.06 |
[LeetCode/Easy] 1068. Product Sales Analysis I (0) | 2023.04.04 |
[LeetCode/Easy] 1050. Actors and Directors Who Cooperated At Least Three Times (0) | 2023.04.04 |