Assume table PART with the following data: ID QTY A 100 B 76 C 982 D 318 E 123 ... ...
and table TEMP with identical columns and only partial data, for example: ID QTY B 625 D 118 E 23 ... ...
If I run the following query: update PART set QTY = (select QTY from TEMP where PART.ID = TEMP.ID)
Rows B, D, and E are correctly set to the new values, however rows A and C get nulled out. How do I avoid this?I thought that it might be as simple as revising the query to reverse the where = comparison (ie: where TEMP.ID = PART.ID) but that did not help.