I have tried all the joins but still in the output i am missing some of the teams name, there are 16 teams in expected output but i am getting only 11. please help
CODE:
echo "$($PSQL "SELECT name FROM teams INNER JOIN games ON teams.team_id=games.winner_id OR teams.team_id=games.opponent_id WHERE year=2014 AND round='Eighth-Final' ORDER BY name")"
