Hi I am trying to match 2 rows from same table? For example below are the 2 rows of a single table. I wan to know if the primaryuser has liked the likeduser and the same liked user under primary user liked the primary user. For example
primaryuser LikedUser Likes
101 102 Yes
102 101 Yes
103 102 No
104 301 Yes
O/P:
101, 102
here when 101 was primary user they liked user with ID 102 and when 102 was primary user they liked user with ID 101 so they have mutually liked each other.