Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/12/2006, 16:20
daniel00
 
Fecha de Ingreso: noviembre-2006
Ubicación: México
Mensajes: 866
Antigüedad: 17 años, 5 meses
Puntos: 8
Re: Fecha maxima en query y otro valor en una tabla

Que tal Max.

Una solución puede ser:

select cod_prod, cantidad , fecha_stock
from stock
where cod_prod='prod1'
AND fecha_stock = ( SELECT MAX (fecha_stock) from stock where cod_prod='prod1' )


Saludos y suerte!