g1701_1800.s1729_find_followers_count.script.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java21 Show documentation
Show all versions of leetcode-in-java21 Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
# Write your MySQL query statement below
# #Easy #Database #SQL_I_Day_7_Function #2022_04_30_Time_456_ms_(88.39%)_Space_0B_(100.00%)
select user_id, count(follower_id) as followers_count
from followers
group by user_id
order by user_id