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
- array
- greedy
- implement
- simulation
- bit manipulation
- Method
- hash table
- 코테
- 구현
- Number Theory
- geometry
- Binary Tree
- string
- Matrix
- Counting
- Class
- 코딩테스트
- java
- Data Structure
- Stack
- 자바
- database
- 파이썬
- SQL
- dynamic programming
- two pointers
- sorting
- Binary Search
- Tree
- Math
Archives
- Today
- Total
코린이의 소소한 공부노트
[LeetCode/Easy] 181. Employees Earning More Than Their Managers 본문
1. Input
1) Employee table (primary key: id)

2. Output
1) 자신의 매니저보다 월급을 많이 받는 사람의 이름은 담은 테이블 반환
- 순서는 상관 없다.
- 반환하는 테이블의 칼럼명은 Employee로 한다.
3. Example
Input:

Output:

4. Code
1) 첫 코드(2023/03/14)
select a.name AS Employee
from Employee a, employee b
where a.managerId=b.id and a.salary>b.salary
'코딩테스트 풀이 > SQL' 카테고리의 다른 글
[LeetCode/Easy] 595. Big Countries (0) | 2023.03.16 |
---|---|
[LeetCode/Easy] 584. Find Customer Referee (0) | 2023.03.16 |
[LeetCode/Easy] 183. Customers Who Never Order (0) | 2023.03.14 |
[LeetCode/Easy] 182. Duplicate Emails (0) | 2023.03.14 |
[LeetCode/Easy] 175. Combine Two Tables (0) | 2023.03.14 |