Hi, when I run the following query, I get all the records updated (which is not what I want). I want to update only the records that satisfy the internal select query. Any ideas how to resolve this?Update tblCommunityServiceMembersSet SeniorManagerFlag = 'Y'Where exists (select distinct emp.EmployeeID, csm.CommunityServiceMembers, csm.SeniorManagerFlag from dbo.tblEmployee emp, dbo.CommunityServiceMembers csm where charindex(emp.EmployeeID, csm.CommunityServiceMembers,1) > 0)