I am trying to make a query to normalize manufacturer names as they are imported. I made a table [tblNameMapping] and it has an ID autonumber for its PK then two fields [OldName] & [NewName].
[OldName] is how the manufacturer appears on the vendors quote and [NewName] is how we want it. I am then trying to run an update query against my table [tblProduct] and everywhere the field [Manufacturer] matches the [OldName], update [Manufacturer] to the [NewName].
I think I am close, but I have initially written:
Not quite right however. Am I close?
[OldName] is how the manufacturer appears on the vendors quote and [NewName] is how we want it. I am then trying to run an update query against my table [tblProduct] and everywhere the field [Manufacturer] matches the [OldName], update [Manufacturer] to the [NewName].
I think I am close, but I have initially written:
SQL:
UPDATE tblNameMapping, tblProduct
SET tblProduct.Manufacturer=tblNameMapping.NewName
JOIN tblProduct.Manufacturer
ON tblNameMapping.OldName