I have a new data set that I have imported into a new table in my database. I need to copy a couple fields from the old table into the new table. There may be new records or dropped records in the new table so I only want to update if the name matches.
Here is what I have so far. This runs, but only the first record is updated:
update or ignore NEWDATA
set CATEGORY=(select CATEGORY from OLDDATA),
KEY=(select KEY from OLDDATA)
where Material=(select Material from OLDDATA);
I have tried it with and without the ignore statement.
Any help or suggestions would be greatly appreciated. Thanks in advance!!