Skip to content

602-friend-requests-ii-who-has-the-most-friends

DevGod
DevGod
Elf Vtuber
SELECT id, COUNT(*) as num
FROM
(
SELECT requester_id AS id FROM RequestAccepted
UNION ALL
SELECT accepter_id AS id FROM RequestAccepted
) t
GROUP BY id
ORDER BY num desc
LIMIT 1