Hi,
I'm trying to update a table with the following command:
UPDATE tt_Contact
SET tt_Contact.OrganisationCode = Organisation_retained_replaced.retain
FROM Organisation_retained_replaced
WHERE Organisation_Retained_replaced.Uniq = tt_Contact.OrganisationCode
The error I get is this:
"Server: Msg 512, Level 16, State 1, Procedure UpdateDate_tt_Contact, Line 10
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated."
I have unique values in the Organisation_retained_replaced table, which link to non uniq values in tt_Contact.
I'm sure it is a simple query to write but I've been looking at it for ages now and its time to ask for some help.
Many Thanks
Matt
I'm trying to update a table with the following command:
UPDATE tt_Contact
SET tt_Contact.OrganisationCode = Organisation_retained_replaced.retain
FROM Organisation_retained_replaced
WHERE Organisation_Retained_replaced.Uniq = tt_Contact.OrganisationCode
The error I get is this:
"Server: Msg 512, Level 16, State 1, Procedure UpdateDate_tt_Contact, Line 10
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated."
I have unique values in the Organisation_retained_replaced table, which link to non uniq values in tt_Contact.
I'm sure it is a simple query to write but I've been looking at it for ages now and its time to ask for some help.
Many Thanks
Matt