Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/11/2008, 09:07
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Ayuda con una consulta

Una propuesta sería esta:

Código sql:
Ver original
  1. SELECT t1.id, t21.precio primerprecio, t22.precio segundoprecio FROM `tabla1` t1 INNER JOIN tabla2 t21 ON t1.idconcepto1 = t21.id INNER JOIN tabla2 t22 ON t1.idconcepto2 = t22.id