Ver Mensaje Individual
  #10 (permalink)  
Antiguo 09/04/2014, 18:39
echo_
 
Fecha de Ingreso: noviembre-2011
Ubicación: Paris
Mensajes: 450
Antigüedad: 13 años
Puntos: 7
Respuesta: Problemas con UNION ALL

Esto es lo que buscaba, de antemano, gracias
Código MySQL:
Ver original
  1. SELECT tl.idperson, tl.firstName, tl.lastName, tl.telephone, tl.degreeOfInterest, l.appointmentDate, e.firstName, i.marketability
  2.   FROM `todos_los_leads` AS tl
  3.   INNER JOIN leads AS l ON tl.idperson = l.idPerson
  4.   INNER JOIN empleados AS e ON tl.idEmployee = e.idEmployee
  5.   INNER JOIN infonavit AS i ON tl.idInfonavit = i.idInfonavit
  6.   SELECT tl.idperson, tl.firstName, tl.lastName, tl.telephone, tl.degreeOfInterest, l.appointmentDate, e.firstName, s.monthlyIncome
  7.   FROM `todos_los_leads` AS tl
  8.   INNER JOIN leads AS l ON tl.idperson = l.idPerson
  9.   INNER JOIN empleados AS e ON tl.idEmployee = e.idEmployee
  10.   INNER JOIN shf AS s ON tl.idSHF = s.idSHF