I have a table for friends
PLAYER_ID FRIEND_ID
----------------------
1 2
1 3 // 1 knows 3
3 1 // 3 knows 1
2 4
How can I create a view containing those acquaintances(know each other) for given player?
PLAYER_ID FRIEND_ID
----------------------
1 3
3 1
thank you.
Here’s the needed select: