Tables: Players: ID(PK), Name, Team, Pos
Matchups:
matchupID(PK), player1ID, player2ID
player1ID and 2 are FKs to Players.ID
I'd like to select the name of both players when pulling but can't get the query correct. I do NOT want a union here.
Something along the lines of this, I'm also open to a better suggestion for formatting the two tables I have.
$queryString = "SELECT Players.name FROM Players
INNER JOIN Matchup WHERE Players.ID = player1ID,
SELECT Players.name FROM Players
INNER JOIN Matchup WHERE Players.ID = player2ID";