Subject | Re: Solution for a redundant join? |
---|---|
Author | Jeff |
Post date | 2012-10-24T20:34:26Z |
--- In firebird-support@yahoogroups.com, "Leyne, Sean" <Sean@...> wrote:
> Use tables aliases to include multiple references to a single table.Sean, aliases did the trick, thank you kindly!
>
>
> SELECT
> SCHEDULE.DATE_TIME, HomeTeam.TEAM, AwayTeam.Team
> FROM SCHEDULE
> LEFT JOIN TEAMS HomeTeam ON HomeTeam.PRIMARYKEY = SCHEDULE.HOME_TEAMID
> LEFT JOIN TEAMS AwayTeam ON AwayTeam.PRIMARYKEY = SCHEDULE.AWAY_TEAMID
>
>
> Sean
>