I have a database with account numbers and card numbers. I match these to a file to update any card numbers to the account number, so
account numbers
card numbers
update
Oracle 11g
merge into Sales_Import using RetrieveAccountNumber on (Sales_Import.LeadId = RetrieveAccountNumber.LeadId) when matched then update set Sales_Import.AccountNumber = RetrieveAccountNumber.AccountNumber;