Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/08/2008, 22:32
mistermandrake
 
Fecha de Ingreso: marzo-2008
Mensajes: 10
Antigüedad: 17 años
Puntos: 0
Respuesta: consulta con dos tablas y multiples resultados

Prueba con esto
select
f.*,h.userid as fuser, h.id as hid
from files_prj3 f inner join history_prj3 h on f.id = h.fileid
where
having hid = min(h.id)