Postgresql – SQL design in Follower/Followed model for relational databases and Follow Back functionality
Suppose I want to keep who follows who in a simple table that has two fields ; UserId and FollowedId and I have a simple data set like ; UserId FollowedId 1 100 2 100 3 100 4 100 5…