Skip to content

Commit 34a5dd9

Browse files
authored
Create 1729.Find-Followers-Count.sql
1 parent e87ce2a commit 34a5dd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Easy/1729.Find-Followers-Count.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--MySQL & MS SQL Server
2+
SELECT
3+
user_id,
4+
COUNT(DISTINCT follower_id ) AS followers_count
5+
FROM Followers
6+
GROUP BY user_id;

0 commit comments

Comments
 (0)