update dbo.xTest set location = xu.locationfrom dbo.xTest xt inner join dbo.xUpdate xu on (xt.name = xu.name);