I have two tables one is called users ( id,first name,last name...) second one is called followings which contains data about which user is following other users
Followings table example
userId followerId
6 10
6 2
6 3
8 1
8 2
8 3
How do I get number of mutual friends between two users
Expected result should be
first_user second_user num_of_mutual_friends
83 73 3