I\'m trying to learn how to join multiple columns from one table to a single column from another table.
This is my table structure in its simplest form:
Like this:
select t1.team_name as team1, t2.team_name as team2, t.team_1, t.team_2 from trades t inner join teams t1 on t1.id = t.team_1 inner join teams t2 on t2.id = t.team_2;