Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/05/2010, 09:36
Erick21
 
Fecha de Ingreso: abril-2010
Ubicación: Lima-Peru
Mensajes: 96
Antigüedad: 14 años
Puntos: 2
Pregunta Procedimiento Almacendo Atualizar Precios

Hola,Tengo una duda acerca de este procedimiento almacenado

CREAR EL PROCEDIMIENTO ALMACENADO QUE ACTUALICE LOS PRECIOS
DE LOS PRODUCTOS QUE TENGAN UN STOCK ENTRE DOS VALORES ENVIADOS
COMO PARAMETROS ASI COMO EL PORCENTAJE DE INCREMENTO PARA LOS PRECIOS,

create Procedure Usp_Actualizar_Precio
@xCant1 as smallint,
@xCant2 as smallint,
@xPrecio as real
as
Update Productos set PrecioUnidad=PrecioUnidad *(1+@xPrecio/100)
where (UnidadesEnExistencia) Between @xCant1 and @xCant2

go

no me esta actualizando los precios de las cantidad que le envio como parametro,
me explico mejor quiero colocar 2 cantidades del stock y que me actualize todos los precios que estan entre estas 2 cantidades. gracias de antemano.

Última edición por Erick21; 28/05/2010 a las 11:31