This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- the following external database with new prices should have ben created before execution of this script | |
/* | |
CREATE TABLE tmpProductPrices | |
( | |
ProductId int | |
, Price number(10,2) | |
) | |
*/ | |
UPDATE p | |
SET p.Price = tmp.Price | |
FROM Products AS p | |
INNER JOIN tmpProductPrices as tmp | |
ON p.ProductId = tmp.ProductId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment