1# SQL Server
2UPDATE
3 Sales_Import
4SET
5 Sales_Import.AccountNumber = RAN.AccountNumber
6FROM
7 Sales_Import SI
8INNER JOIN
9 RetrieveAccountNumber RAN
10ON
11 SI.LeadID = RAN.LeadID;
12# MySQL & MariaDB
13UPDATE
14 Sales_Import SI,
15 RetrieveAccountNumber RAN
16SET
17 SI.AccountNumber = RAN.AccountNumber
18WHERE
19 SI.LeadID = RAN.LeadID;