I have a table that has two different ID's that link to another table. I want to be able in a single query pull back all the information I need. My we host is running a fair old version of MySQL so I can't do sub quieries. Here is what I came up with and everytime it runs it throws away one of the team columns.
SELECT S.ScheduleTime, H.Team , S.HomeGoals, V.Team, S.VisitingGoals, L.Location, S.Result
FROM schedule S, teams V, Location L, teams H
Where S.VisitingTeamID = V.TeamID
AND S.HomeTeamID = H.TeamID
AND S.LocationID = L.LocationID
Any help you could give would be greatly appricated. Thanks.
Randy Coooper
Randy
SELECT S.ScheduleTime, H.Team , S.HomeGoals, V.Team, S.VisitingGoals, L.Location, S.Result
FROM schedule S, teams V, Location L, teams H
Where S.VisitingTeamID = V.TeamID
AND S.HomeTeamID = H.TeamID
AND S.LocationID = L.LocationID
Any help you could give would be greatly appricated. Thanks.
Randy Coooper
Randy