Hi
I have created a recordset from two tables, teams and fixres. teams has team data (ID, name etc) fixres has two values one for each of the teams in the fixture (Hometeam_ID, Awayteam_ID). I have managed to join the two tables to match the ID with the team name, however I can only get one team value!
Here is the joining query:
SELECT ID, TeamName
FROM mofc_fixres INNER JOIN mofc_teams ON mofc_fixres.Hometeam_ID=mofc_teams.Team_ID AND mofc_fixres.Awayteam_ID=mofc_teams.Team_ID
How can I create two values instead of one?
I have created a recordset from two tables, teams and fixres. teams has team data (ID, name etc) fixres has two values one for each of the teams in the fixture (Hometeam_ID, Awayteam_ID). I have managed to join the two tables to match the ID with the team name, however I can only get one team value!
Here is the joining query:
SELECT ID, TeamName
FROM mofc_fixres INNER JOIN mofc_teams ON mofc_fixres.Hometeam_ID=mofc_teams.Team_ID AND mofc_fixres.Awayteam_ID=mofc_teams.Team_ID
How can I create two values instead of one?