Mutual Followers
Medium
Social Network Queries
Return every pair of users who follow each other, listed once with the smaller id first, ordered by the pair.
Table schema
Follows(follower INT, followee INT)Sample data
follower | followee
1 | 2
2 | 1
1 | 3
3 | 4
4 | 3
2 | 4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.