C
Commish
Hello Helpful People. I have an ambiguous join - I understand why it
is ambiguous, I just cannot figure out a way around it to get the
correct set of results.
I have 2 tables, AllPlayers and PlayerHistory. The key fields are
playerID and YearID - where a player can have 0 or 1 records in a year
in either table. A player record can exist in multiple years - 1 or
more - in either table.
So, I do an outer join on playerId to get the set of all playerIDs. I
want to use a query to add information from PlayerHistory to the
AllPlayer information. So, I need to join on playerID and yearID, but
if I add in yearID in the join, it becomes ambiguous.
Doing the first join, saving the query, and making a second query
using the first query and PlayerHistory, gets me the same ambiguity
problem. So, what little technique am I missing?
is ambiguous, I just cannot figure out a way around it to get the
correct set of results.
I have 2 tables, AllPlayers and PlayerHistory. The key fields are
playerID and YearID - where a player can have 0 or 1 records in a year
in either table. A player record can exist in multiple years - 1 or
more - in either table.
So, I do an outer join on playerId to get the set of all playerIDs. I
want to use a query to add information from PlayerHistory to the
AllPlayer information. So, I need to join on playerID and yearID, but
if I add in yearID in the join, it becomes ambiguous.
Doing the first join, saving the query, and making a second query
using the first query and PlayerHistory, gets me the same ambiguity
problem. So, what little technique am I missing?