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 |
Tags
- Number Theory
- Stack
- java
- Tree
- SQL
- Counting
- 코테
- Matrix
- Math
- 코딩테스트
- sorting
- greedy
- two pointers
- dynamic programming
- Binary Tree
- database
- Data Structure
- geometry
- hash table
- 구현
- 파이썬
- simulation
- bit manipulation
- array
- Class
- Method
- implement
- 자바
- string
- Binary Search
Archives
- Today
- Total
코린이의 소소한 공부노트
[LeetCode/Easy] 1978. Employees Whose Manager Left the Company 본문
1. Input
1) Table: Employees (pk: employee_id)
2. Output
1) 월급이 3만달러 미만이면서 매니저가 회사에 없는 직원의 id를 출력
- id를 기준으로 오름차순 정렬 후 출력한다.
3. Example
4. Code
1) 첫 코드(2023/04/24)
select employee_id
from Employees
where salary<30000 and manager_id not in (
select employee_id
from Employees)
order by employee_id;
'코딩테스트 풀이 > SQL' 카테고리의 다른 글
[LeetCode/Easy] 511. Game Play Analysis I (0) | 2023.05.23 |
---|---|
[LeetCode/Easy] 2356. Number of Unique Subjects Taught by Each Teacher (0) | 2023.05.02 |
[LeetCode/Easy] 1890. The Latest Login in 2020 (0) | 2023.04.24 |
[LeetCode/Easy] 1873. Calculate Special Bonus (0) | 2023.04.22 |
[LeetCode/Easy] 1757. Recyclable and Low Fat Products (0) | 2023.04.17 |