You do that with Update...From in T-SQL.
Would look like this:
update cust -- use the alias for the target table
set OID = OID_ACTUAL, FCID = FCID_ACTUAL
from myschema.customers cust -- alias the target table
inner join xref_table xref
on cust.OID = xref.OID
and cust.FCID = xref.FCID
where cust.OID > 0
and cust.FCID > 0;
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon