Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/06/2006, 11:55
Avatar de PequeñoMauro
PequeñoMauro
 
Fecha de Ingreso: abril-2006
Ubicación: Lima - Perú
Mensajes: 600
Antigüedad: 18 años, 1 mes
Puntos: 3
Intenta si te sale con esto:
Cita:
SELECT codigo, id_estado, fecha
from recorrido r1
where r1.id_estado = '3' AND
fecha=(select max(fecha) from recorrido
where id_estado=r1.id_estado)
order by codigo
Suerte
__________________
"Nada en mis manos traigo tan solo a tu cruz me aferro....."