Hi,
I have a table:
id user1 user2
and I am looking for a way to select all the users that are connected to each other, for example:
id user1 user2
1 john bob
2 bob tracy
3 tracy greg
4 fred hanna
5 greg james
I want to see if john is connected to james, so the result should...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.