Reputation: 1
I have two tables and need to update ClientInfo with ServiceLocation information from EligibleServices table
**Table: EligibleServices**
ChartNumber
-----------
1
2
3
ServiceLocation
---------------
Office1
Office2
Office3
**Table: ClientInfo**
Chartnumber
-----------
1
2
3
ServiceLocation
---------------
Upvotes: 0
Views: 43
Reputation: 1270021
You can do an update
with a join
:
update clientinfo ci join
eligibleservices es
on ci.ChartNumber = es.ChartNumber
set ci.ServiceLocation = es.ServiceLocation;
Upvotes: 1