I have made a football database and now need to do some queries but need some advice:
So 4 tables:
Players
Managers
Matches
Teams
Need to pull results which display:
Top 100 goal scorers
Player(name) | Team(name) | Matches(goals) | Manager(name)
How would the code look like if:
Players table contains; playerid, managerid, teamid, name
Managers contains; managerid, name
Matches contains; matchid, playerid, goals
Teams contains; teamid, name
Right now I have something alone the lines of:
"SELECT players.name, teams.name, matches.goals, managers.name
FROM players
INNER JOIN ????
ORDER BY matches.goals";
So what do I put within the INNER JOIN assuming everything else is correct?
Thanks!