Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/10/2015, 12:40
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, 9 meses
Puntos: 774
Respuesta: SQL Mostrar nombre dos veces de una tabla

en teoria el query deberia de funcionar solo agregale esto:

Código SQL:
Ver original
  1. SELECT M1.Nombre AS idSupIntendente1, M2.Nombre AS idSupIntendente2
  2. FROM ACResponsables
  3. INNER JOIN AoSubContratos M1 ON
  4. ACResponsables.IdResponsable=M1.idSupIntendente1
  5. INNER JOIN AoSubContratos M2 ON
  6. ACResponsables.IdResponsable=M2.idSupIntendente2
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me