데이터 분석 기술 블로그

Find Followers Count _ Easy. LeetCode 본문

SQL/문제풀이

Find Followers Count _ Easy. LeetCode

데이터분석가 이채은 2024. 10. 20. 20:10

 

Solution

SELECT user_id,
    COUNT(follower_id) followers_count
FROM Followers
GROUP BY user_id
ORDER BY user_id ASC;