Hi there.
This is a different SQL Table/database I have.
What I want is this:
say for instance, we have 2 teams. each team has subteams.
subteams can play against each other from the same team.
I want a SQL query which will retrieve me:
1) team 1a vs team 1b
and the opposite of that! (team 1b vs team1a)
Tables:
Matches
ID (PK)
TeamID (FK)
DateOfMatch
Teams
ID (PK)
TeamName
I would like to show as well as the results, the names of the teams (teamname)
for this result:
team 1a vs team 1b
I can only get that result, but not:
team1b vs team1a
which is what I would like AS WELL.
Thank-you
This is a different SQL Table/database I have.
What I want is this:
say for instance, we have 2 teams. each team has subteams.
subteams can play against each other from the same team.
I want a SQL query which will retrieve me:
1) team 1a vs team 1b
and the opposite of that! (team 1b vs team1a)
Tables:
Matches
ID (PK)
TeamID (FK)
DateOfMatch
Teams
ID (PK)
TeamName
I would like to show as well as the results, the names of the teams (teamname)
for this result:
team 1a vs team 1b
I can only get that result, but not:
team1b vs team1a
which is what I would like AS WELL.
Thank-you
