B
Barney the Rubble
I'm racking my brain and I cant for the life of me figure this out.
It's probably simple for you SQL Gurus, so could you please take a look
and help?
I have a Team Schedule database is Access with 2 tables.
The 'Schedule' table looks like this:
ID, GameDate, VisitorID, HomeID
My 'Team' table looks like this:
ID, TeamName
Now the problem is that I want to run a query and display the Schedule
as it should look:
GameDate Visitor Home
10/4/2006 Team1 Team2
10/4/2006 Team3 Team4
But I cant figure out the JOIN query. The only one I can do is:
SELECT Schedule.GameDate, Team.TeamName AS Visitor, Team.TeamName AS
Home
FROM Schedule INNER JOIN Team ON Schedule.VisitorID=Team.ID;
But as you can see, it only uses one column for team names and provides
results like:
GameDate Visitor Home
10/4/2006 Team1 Team1
10/4/2006 Team3 Team3
PLEEEEEASE, can someone smart help me out. This is driving me up the
wall because I know it should be sooooooooo simple.
Thanks in Advance
It's probably simple for you SQL Gurus, so could you please take a look
and help?
I have a Team Schedule database is Access with 2 tables.
The 'Schedule' table looks like this:
ID, GameDate, VisitorID, HomeID
My 'Team' table looks like this:
ID, TeamName
Now the problem is that I want to run a query and display the Schedule
as it should look:
GameDate Visitor Home
10/4/2006 Team1 Team2
10/4/2006 Team3 Team4
But I cant figure out the JOIN query. The only one I can do is:
SELECT Schedule.GameDate, Team.TeamName AS Visitor, Team.TeamName AS
Home
FROM Schedule INNER JOIN Team ON Schedule.VisitorID=Team.ID;
But as you can see, it only uses one column for team names and provides
results like:
GameDate Visitor Home
10/4/2006 Team1 Team1
10/4/2006 Team3 Team3
PLEEEEEASE, can someone smart help me out. This is driving me up the
wall because I know it should be sooooooooo simple.
Thanks in Advance