Hi @Malam Malam ,
Welcome to Microsoft Q&A!
Please refer below and check whether it is working:
--add column CustCity
alter table TableA add CustCity VARCHAR(100) NULL
--update TableA
update a
set a.CustCity =c.CustCity
from TableA a
inner join TableB b on a.CustNumber=b.CustNumber
inner join TableC c on b.CustID=c.CustNumber
select * from TableA
Output:
CustNumber FirstName LastName CustCity
A0001 John Doe Beverly Hills
A0002 Richard Crena Inglewood
A0004 Elvis Presley Malibu
Best regards
Melissa
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.