I am receiving the following error when I attempt the execute an Update statement from a subselect to a temporary table that also accesses that table twice within the subselect:Msg 207, Level 16, State 1, Line 74Invalid column name 'Group_ID'.Update #Donor_SummarySet Org_Name = Parent_Nm, Group_Cd = Parent_Cd, Soft_Credit_Grp_Nm = Child_Nm, Soft_Credit_Grp_Cd = Child_CD, Solicitor_Nm = Solicitor from( Select Q.Group_ID as Child_ID, Q.Group_Cd as Child_Cd, Q.Org_Name as Child_Nm, R.Group_Cd as Parent_Cd, R.Org_Name as Parent_Nm, R.Solicitor_Nm as Solicitor from #Donor_Summary Q INNER JOIN Related_Groups P ON P.Rel_Type_Code = 1270005 and P.Child_Group_ID = Q.Group_ID INNER JOIN #Donor_Summary R on R.Group_ID = P.Parent_Group_ID) Zwhere #Donor_Summary.Group_ID = Z.Group_ID
Any assistance is appreciated!