Okay so i got one table with people. One table with items that are given away and one with items people want.
People:
Person_ID, Name
Giveaways:
Person_ID, Item_ID
Wishlist:
Person_ID, Item_ID
So i want a query that returns exchange suggestions for a certain user.
So if i want exchange suggestions for person A it should return a list of people that are giving away an item that person A wants, and want an item that person A is giving away.
The result should include: Person A’s item, name of person too make exchange with as well as id and item_ID.
@SérgioMichels’ answer should be correct. But it doesn’t get the seller’s name, and it uses syntax that should (in my opinion) be avoided.
So, here is an alternative…