Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/05/2011, 14:10
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: JOIN con 2 tablas

No te funciona algo asi??


SELECT *
FROM
tabla1 t1
inner join tabla2 t2 on (t1.id=t2.id)
LEFT JOIN tabla3 t3 on (te.id=t2.id)
WHERE
tabla1.id=tabla2.id
AND tabla1.ir=tabla2.ir
and tabla1.x=tabla3.x


SAludos!!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me