I want to know how to get 2 different values from the same column in the same row. I mean, I have my table friends as shown below.
id | source | target
1 1 2
1 1 3
And then I have my users table, with the following values
id | name
1 John
2 Will
3 Mark
I want to know which users are friends, for example, in the first case it would be John and Will are friends.