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
- Class
- 코테
- 파이썬
- Data Structure
- two pointers
- Counting
- implement
- Method
- Binary Search
- hash table
- 구현
- Stack
- Math
- SQL
- 자바
- geometry
- Matrix
- sorting
- simulation
- dynamic programming
- bit manipulation
- greedy
- Tree
- Binary Tree
- java
- string
- Number Theory
- array
- 코딩테스트
- database
Archives
- Today
- Total
코린이의 소소한 공부노트
[LeetCode/Easy] 1075. Project Employees I 본문
1. Input
1) Table: Project (pk = (project_id, employee_id))
2) Table: Employee (pk = employee_id)
2. Output
1) 각 프로젝트별로 참여하는 모든 직원들의 평균 경력을 소수점 2자리까지 출력하기
- 순서는 상관 없다.
3. Example
4. Code
1) 첫 코드(2023/04/04)
select project_id, round(avg(experience_years),2) as average_years
from Project p, Employee e
where p.employee_id=e.employee_id
group by project_id;
'코딩테스트 풀이 > SQL' 카테고리의 다른 글
[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 |
[LeetCode/Easy] 1729. Find Followers Count (0) | 2023.03.29 |
[LeetCode/Easy] 1587. Bank Account Summary II (0) | 2023.03.29 |
[LeetCode/Easy] 1527. Patients With a Condition (0) | 2023.03.19 |