I have a table friends with 4 columns (id, sender, receiver, status) and I need a query that will unite (reunion, I dont know the word in english) the sender and receiver colums.
For example the table looks like this
| sender | receiver |
| 2 | 10 |
| 2 | 8 |
| 2 | 9 |
| 6 | 2 |
| 7 | 3 |
And the query should give only the unique ids from both sender and receiver. (2,3,6,7,8,10)
Returns
OR
returns