I have two tables, pricelist.plpart and bsp_priceupdate.xplpart
all prices in pricelist table need to be updated with 3% EXCLUDING those in the bsp_priceupdate table.
i will be running this update in sql 7.
Appreciate your help.
D
I have two tables, pricelist.plpart and bsp_priceupdate.xplpart
all prices in pricelist table need to be updated with 3% EXCLUDING those in the bsp_priceupdate table.
i will be running this update in sql 7.
Appreciate your help.
D
I think something like this ought to do it...
UPDATE pricelist.plpart
SET price = ROUND( price * 1.03, 2 )
WHERE NOT EXISTS (
SELECT *
FROM bsp_priceupdate.xplpart
WHERE bsp_priceupdate.xplpart.partID = pricelist.plpart.partID )