I know you can INSERT to a table based off a SELECT statement. But can you do the same with a UPDATE, and if so can you provide assitance?The below query returns all the fields from my table called 'Summary.tblResult', base off the results from the select I need to update the 'Rating' field with the returned value. How can I achieve this?SELECT Emplevel ,metric.DateType ,StartDate ,metric.EmployeeID ,Metric.PAGroupID ,Metric.ObjectiveID ,Result ,CASE WHEN Metric.Result >= obj.Leading THEN pa.LeadingValue WHEN Metric.Result >= obj.Performing AND Metric.Result < ISNULL(obj.LEADING, Metric.Result+ 1) -- if leading is null sets condition to true THEN pa.PerformingValue WHEN Metric.Result < obj.Performing THEN pa.DevelopingValue ELSE NULL END Rating FROM Summary.tblResult METRIC INNER JOIN Config.tblObjective OBJ ON Metric.ObjectiveID = obj.ObjectiveID INNER JOIN Config.tblOveralls PA ON Metric.PAGroupID = pa.PAGroupID WHERE obj.BestScore_HighLowRange = 'H' AND obj.MonthlyRating = 0 AND BlendedRating = 0 AND Metric.ObjectiveID = @objectiveid AND Metric.DateType = @Datetype AND StartDate BETWEEN @StartDate AND @EndDate
thanks