We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e87ce2a commit 34a5dd9Copy full SHA for 34a5dd9
Easy/1729.Find-Followers-Count.sql
@@ -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