Ver Mensaje Individual
  #3  
Antiguo 28-10-2010
aposi aposi is offline
Miembro
 
Registrado: dic 2006
Posts: 159
Reputación: 20
aposi Va por buen camino
Con 2 sql lo puedes hacer...


update tabla set observacion = 'OBSERVACION2' where
producto in (select producto from TABLA where precio < (SELECT min(PRECIO) FROM TABLA) * 0.05)

UPDATE TABL SET OBSERVACION = 'OBSERVACION1' where producto= (select min(precio) from TABLA
Responder Con Cita