Hi,I think I have a simple logic issue here. I want to update a field where the record_type = company but I only want one instance where a company name exists more than once. I know if i run the Select Query alone i get the results is need. When i put it with the update statement, every record in the database gets updated.Any help would be great. Thanks.Query i have been trying to get working... UPDATE wce_contact SET pager = 'Parent' WHERE EXISTS (SELECT MAX(COMPANY) AS companyFROM wce_contactWHERE (Record_Type = 'Company')GROUP BY COMPANY)
This gets the results i need updated.SELECT MAX(COMPANY) AS companyFROM wce_contactWHERE (Record_Type = 'Company')GROUP BY COMPANY