ceu-notes/1/GBD/notes/join-example.sql

6 lines
185 B
MySQL
Raw Normal View History

2022-02-09 16:56:29 +00:00
-- show full name of defensive players and their team name
SELECT F.NOMBRE, F.APELLIDOS, E.NOMBRE
FROM FUTBOLISTAS F
JOIN EQUIPOS E ON F.ID_EQUIPO = E.ID
WHERE F.POSICION='DEFENSA';