ok here is the code I have currently
Basically it finds all the Product Codes for a Company and updates the price structures. This works fine but what I need is to send all of the product codes from tblProductPriceUpdate that could not be found in tblProduct and have product codes and prices sent to tblProductPriceNotUpdate. So this way I know if there are some new products that need to be added to the database. Let me know what you come up with. Thank you.
Code:
UPDATE tblProduct
SET retailPrice = tblProductPriceUpdate.retailPrice, jobberPrice = tblProductPriceUpdate.jobberPrice
FROM tblProductPriceUpdate
WHERE tblProductPriceUpdate.company = tblProduct.company AND tblProductPriceUpdate.productCode = tblProduct.productCode
Basically it finds all the Product Codes for a Company and updates the price structures. This works fine but what I need is to send all of the product codes from tblProductPriceUpdate that could not be found in tblProduct and have product codes and prices sent to tblProductPriceNotUpdate. So this way I know if there are some new products that need to be added to the database. Let me know what you come up with. Thank you.