Home Forums SQL Server 2005 T-SQL (SS2K5) Update record if master table record exist RE: Update record if master table record exist
mayurkb
Ten Centuries
Points: 1155
More actions
June 19, 2013 at 7:59 am
#1625483
Consider normalizing these tables in future.
For now, Check if this works:
Update POTable
set Buyer = PO.Name
FROM POTable PO inner join BuyerTable BT
ON PO.Buyer = BT.Buyer