UPDATE Training_TestRecord SET TestType= P.PlanName
FROM Training_TestPlan AS P
WHERE Training_TestRecord.TestPlanId=P.TestPlanId
GO