--this works...
UPDATE Table_1
SET name = (SELECT Table_2.toast FROM Table_2 WHERE Table_2.other_id = Table_1.id)
WHERE EXISTS(SELECT Table_2.toast FROM Table_2 WHERE Table_2.other_id = Table_1.id)
--this does not work
UPDATE AddressPhase
SET FixedCost = (SELECT #TEMP1.Cost FROM #TEMP1 WHERE #TEMP1.IntAddressPhasesId = AddressPhase.IntAddressPhasesId)
WHERE EXISTS(SELECT #TEMP1.Cost FROM #TEMP1 WHERE #TEMP1.IntAddressPhasesId = AddressPhase.IntAddressPhasesId)
|