I want to get name, email, id of both users who followed each other and status equal to 'A'.
My friends table screenshot:
Note: In the above screenshot follower_id and following_id are both users table ids.
I want to get name, email, id of both users who followed each other and status equal to 'A'.
My friends table screenshot:
Note: In the above screenshot follower_id and following_id are both users table ids.
Copyright © 2021 Jogjafile Inc.

I achieved my goal by the following query:
In the above query, to segregate users those followed each other I used
self-joinand to append user info I usedinner-join. I combined the joins.Output: