Skip to content

Commit 4c59a6d

Browse files
committed
Upload 121
1 parent cd4e5ea commit 4c59a6d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ To make the daily tasks of creating a new file and updating the index easier, th
149149
| 118 | [User Activity for the Past 30 Days I](https://leetcode.com/problems/user-activity-for-the-past-30-days-i/description/) | [Solution](solutions/118_user_activity_for_the_past_30_days_i.md) | LeetCode | Easy | `BETWEEN`, `DATE` w/ `INTERVAL` |
150150
| 119 | [Product Sales Analysis III](https://leetcode.com/problems/product-sales-analysis-iii/description/) | [Solution](solutions/119_product_sales_analysis_iii.md) | LeetCode | Medium | |
151151
| 120 | [Classes More Than 5 Students](https://leetcode.com/problems/classes-more-than-5-students/description/) | [Solution](solutions/120_classes_more_than_5_students.md) | LeetCode | Easy | |
152+
| 121 | [Find Followers Count](https://leetcode.com/problems/find-followers-count/description/) | [Solution](solutions/121_find_followers_count.md) | LeetCode | Easy | |
152153

153154
## Author(s)
154155

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SQL Everyday \#121
2+
3+
## Find Followers Count
4+
5+
Site: LeetCode\
6+
Difficulty per Site: Easy
7+
8+
## Problem
9+
10+
Write a solution that will, for each user, return the number of followers.
11+
12+
Return the result table ordered by `user_id` in ascending order. [[Full Description](https://leetcode.com/problems/find-followers-count/description/)]
13+
14+
## Submitted Solution
15+
16+
```sql
17+
-- Submitted Solution
18+
SELECT
19+
user_id
20+
,COUNT(follower_id) AS followers_count
21+
FROM Followers
22+
GROUP BY user_id
23+
ORDER BY user_id ASC
24+
;
25+
```
26+
27+
## Site Solution
28+
29+
```sql
30+
-- LeetCode Solution
31+
-- Site solution essentially the same.
32+
```
33+
34+
## Notes
35+
36+
TODO
37+
38+
Go to [Table of Contents](/README.md#contents)\
39+
Go to [Overview](/README.md)

0 commit comments

Comments
 (0)