Tags
- SQL
- count
- regexp
- migrations
- update
- 백트래킹
- Queue
- 이진트리
- 스택
- 그리디
- Tree
- 쟝고
- DB
- M:N
- 완전검색
- drf
- 통계학
- distinct
- ORM
- Article & User
- stack
- Vue
- delete
- outer join
- 트리
- N:1
- 뷰
- create
- 큐
- Django
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Notice
Recent Posts
Link
데이터 분석 기술 블로그
Employees Whose Manager Left the Company _ Easy. LeetCode 본문


Solution
SELECT e.employee_id
FROM Employees e
LEFT JOIN Employees m
ON e.manager_id = m.employee_id
WHERE (e.salary < 30000) AND
(e.manager_id IS NOT NULL AND m.employee_id IS NULL)
ORDER BY employee_id ASC;'SQL > 문제풀이' 카테고리의 다른 글
| Fix Names in a Table _ Easy. LeetCode * (0) | 2024.11.01 |
|---|---|
| Japan Population _ Easy. HackerRank (0) | 2024.10.31 |
| Average Population _ Easy. HackerRank (0) | 2024.10.29 |
| Triangle Judgement _ Easy. LeetCode (0) | 2024.10.28 |
| Revising Aggregations - Averages _ Easy. HackerRank (0) | 2024.10.27 |