J
jlwood44
I am working with chess matches from different schools. I have a query with:
1) Match ID (PK)
2) Player1 ID
3) Player2 ID
4) Player1 wins
5) Player2 wins
6) Draws
7) Winning team.
I would like to combine this with a querry with:
(This 2nd querry show the 2nd players results, so show every individual
results)
1) Match ID
2) Player2 ID
3) Player1 ID
4) Player2 wins
5) Player1 wins
6) Draws
7) Winning team.
How would this be done? How about the PK? If there are 15 matches, I want
the combined querry to have 30 entries.
Part of the reason for doing this is that sometimes a player is listed as
player 1 and sometimes as player 2. By combining the querries, I can easily
show (and group) all of 'Joe Smith's matches and show who he played and the
results of each match.
In advance, thank you very much for your help.
1) Match ID (PK)
2) Player1 ID
3) Player2 ID
4) Player1 wins
5) Player2 wins
6) Draws
7) Winning team.
I would like to combine this with a querry with:
(This 2nd querry show the 2nd players results, so show every individual
results)
1) Match ID
2) Player2 ID
3) Player1 ID
4) Player2 wins
5) Player1 wins
6) Draws
7) Winning team.
How would this be done? How about the PK? If there are 15 matches, I want
the combined querry to have 30 entries.
Part of the reason for doing this is that sometimes a player is listed as
player 1 and sometimes as player 2. By combining the querries, I can easily
show (and group) all of 'Joe Smith's matches and show who he played and the
results of each match.
In advance, thank you very much for your help.