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
- 코테
- Stack
- java
- 구현
- geometry
- implement
- array
- Matrix
- Number Theory
- greedy
- dynamic programming
- simulation
- 파이썬
- Binary Tree
- Tree
- sorting
- SQL
- hash table
- two pointers
- bit manipulation
- database
- Class
- 자바
- Counting
- Binary Search
- Method
- Math
- Data Structure
- string
- 코딩테스트
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 |