I have two tables - player, which stores players data, and similar table team. I want to select from these two tables name and surname of player and name of team to which one he belongs. I used this query:
SELECT player.name, player.surname,
team.name AS teamname
FROM player, team
WHERE player.id_player=team.id_team
But as result i only have only one player from each team, and of course i want a full list of players with names of team.
Anyone has an idea?