update Web_inventory_limit set quantity_sell=2*Promotion_item.item_number
from Promotion_item
where Promotion_item.promotionID=1 and Web_inventory_limit.whcode=5
and Web_inventory_limit.item_no =Promotion_item.item_no
from Promotion_item
where Promotion_item.promotionID=1 and Web_inventory_limit.whcode=5
and Web_inventory_limit.item_no =Promotion_item.item_no
from Promotion_item
where Web_inventory_limit.item_no=Promotion_item.item_no and Promotion_item.promotionID=1 and Web_inventory_limit.whcode=5
update web_inventory_limit set quantity_sell=quantity_sell+p.item_number
from web_inventory_limit w inner join promotion_item p on w.item_no=p.item_no
where w.wh_code=5 and p.promotionid='1'
(select 2*Promotion_item.item_number from Promotion_item where
Promotion_item.promotionID=1 and Web_inventory_limit.whcode=5)
set quantity_sell=2*a.item_number
from Promotion_item a
where Web_inventory_limit.item_no=a.item_no and a.promotionID=1 and Web_inventory_limit.whcode=5