Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/10/2019, 08:55
Avatar de juanito1712
juanito1712
 
Fecha de Ingreso: mayo-2010
Ubicación: Valencia
Mensajes: 1.124
Antigüedad: 13 años, 11 meses
Puntos: 66
Diferenciar campos con mismo nombre en inner join

Cita:
select * from matches
inner join teams as t1 on matches.localTeam=t1.id
inner join teams as t2 on matches.visitingTeam=t2.id
inner join reservations as r on matches.id=r.refered
¿Como diferencio el id de t1 de el id de t2 por ejemplo?