What I have is a table with a bunch of products (books, in this case). My point-of-sale system generates me a report that has the ISBN (unique product number) and perpetual
try to use INNER JOIN in the two tables like that
UPDATE `inventory` INNER JOIN `sales` ON `inventory`.`isbn` = `sales`.`isbn` SET `inventory`.`numbersold` = `sales`.`numbersold`