I have an update that does not seem to be updating the records correctly. Need some help. Here is the update statement.UPDATE LTFLM SET DATE_CREATED = LOT.DATE_CREATED FROM LOTDATES LOT WHERE EXISTS (SELECT 1 FROM LOTDATES WHERE (PART_ID = LTFLM.PART_ID) AND (LOT_ID = LTFLM.LOT_ID))
Here are the results from the following two select statements:SELECT PART_ID, LOT_ID, DATE_CREATED FROM LTFLM WHERE PART_ID = '280-001215'PART_ID LOT_ID DATE_CREATED280-001215 11332 2008-08-28 00:00:00.000280-001215 11950 2008-12-31 00:00:00.000280-001215 7691 2008-12-31 00:00:00.000280-001215 819 2008-12-31 00:00:00.000280-001215 B5263/B5320 2009-12-16 12:50:51.987
and SELECT * FROM LOTDATES WHERE EXISTS (SELECT 1 FROM LTFLM WHERE LOT_ID = LOTDATES.LOT_ID) AND PART_ID = '280-001215'Part_id lot_id Date_Created280-001215 819 2002-12-31 00:00:00.000280-001215 7691 2008-12-31 00:00:00.000280-001215 11950 2009-12-31 00:00:00.000
It looks to me like the values for the Lot_ID 819 should be set to 2002-12-31. But I don't see that happening. Any help would be greatly appreciated. Thanks.