i’ve been trying to join two tables for the world cup project , the best attempt i got is:
SELECT name FROM teams FULL JOIN games ON teams.team_id = games.winner_id AND teams.team_id = games.opponent_id WHERE round='Eighth-Final' GROUP BY name;
but it seems broken ,like there’s no relation between the two tables anymore , however it works fine with only one foreign key.