Based on the table(s) below, with 1 equaling most valued & 8 equaling the least valued, I'm looking to identify differences in values that will help facilitate a trade.
Owner Tool Joe Smith Rank Tom Brown Rank Joe Smith Axe 1 1 Joe Smith Nails 8 7 Joe Smith Saw 5 6 Joe Smith Wrench 3 2 Tom Brown Bolts 7 8 Tom Brown Hammer 2 3 Tom Brown Plyers 6 5 Tom Brown Screwdriver 4 4
For example, based on the information above, Joe Smith values a Hammer more than a Wrench AND Tom Brown values a Wrench more than a Hammer. As a result, the query should identify this and report a 'Hammer FOR Wrench' trade.
A full query should output the following data below. I calculated this manually, but I'm looking to write a query to do this automatically and on a bigger scale with more data.
Query Results:
Nails (Joe Smith) FOR Bolts (Tom Brown)
Wrench (Joe Smith) FOR Hammer (Tom Brown)