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
- Math
- Binary Tree
- 구현
- Counting
- database
- Stack
- 코딩테스트
- implement
- java
- dynamic programming
- Number Theory
- geometry
- 자바
- greedy
- Class
- Data Structure
- Matrix
- Tree
- 파이썬
- 코테
- Binary Search
- hash table
- Method
- simulation
- bit manipulation
- string
- array
- sorting
- two pointers
- SQL
Archives
- Today
- Total
코린이의 소소한 공부노트
[LeetCode/Easy] 1729. Find Followers Count 본문
1. Input
1) Table: Followers (pk: (user_id, follower_id))
2. Output
1) 각 유저별로 팔로워 수를 출력
- user_id 오름차순으로 출력한다.
3. Example
4. Code
1) 첫 코드(2023/03/29)
select user_id, count(follower_id) as followers_count
from Followers
group by user_id
order by user_id;
'코딩테스트 풀이 > SQL' 카테고리의 다른 글
[LeetCode/Easy] 1050. Actors and Directors Who Cooperated At Least Three Times (0) | 2023.04.04 |
---|---|
[LeetCode/Easy] 1075. Project Employees I (0) | 2023.04.04 |
[LeetCode/Easy] 1587. Bank Account Summary II (0) | 2023.03.29 |
[LeetCode/Easy] 1527. Patients With a Condition (0) | 2023.03.19 |
[LeetCode/Easy] 1407. Top Travellers (0) | 2023.03.19 |