Ver Mensaje Individual
  #3  
Antiguo 04-08-2008
Avatar de Gaim2205
Gaim2205 Gaim2205 is offline
Miembro
 
Registrado: ago 2007
Ubicación: Durango, Mexico
Posts: 144
Reputación: 17
Gaim2205 Va por buen camino
Hola disculpen por la tardanza, estuve fuera estos dias. Al final la solución quedó así.
Código SQL [-]
select i.item_no, i.rec_hst_dt, i.expected_cost
from imrechst_sql i
inner join
(select distinct item_no, max(expected_cost) as max_exp
from imrechst_sql
group by item_no) x
on x.item_no = i.item_no
and x.max_exp = i.expected_cost
order by i.item_no

Gracias poliburro por tu interés.
Responder Con Cita