Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/03/2009, 15:33
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 17 años
Puntos: 300
Respuesta: union avanzada de dos tablas

A ver si esto:
SELECT t1.id_cal, t2.id_mat, t2.fp_real, t1.fp_progr
FROM tabla1 t1
LEFT JOIN tabla2 t2 ON t1.id_cal = t2.id_cal
GROUP BY t1.fp_progr