Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/04/2015, 08:24
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: Consulta con reemplazo de valor

en lugar del

Código SQL:
Ver original
  1. SELECT
  2. t1.*
  3. FROM
  4. tbl_camioneta AS t1
  5. INNER JOIN tbl_gerencia AS t2 ON t1.gerencia=t2.id_gerencia
  6. INNER JOIN tbl_sup_int AS t3 ON t1.superintendencia=t3.id_supint;

Prueba con algo como esto:

Código SQL:
Ver original
  1. SELECT
  2. *
  3. FROM
  4. tbl_camioneta AS t1
  5. INNER JOIN tbl_gerencia AS t2 ON t1.gerencia=t2.id_gerencia
  6. INNER JOIN tbl_sup_int AS t3 ON t1.superintendencia=t3.id_supint;

ahi veras todos los datos que ocupas es nada mas que pongas los que necesitas :)
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me