[CODE=SQL]Update contacts set Commonsid =
(select Commonsid from contacts1 where contactid = contacts.contac tid and Commonsid is not null)
where Commonsid is null[/CODE]
This query gives 'Operation must use an updatable query' error. I copied this query to SQLServer 2005, it works fine.
The table 'Contacts1' is copied table of 'Contacts', except that Contacts1 table has values in CommonsID field, while in 'Contacts', the values are null. Contactid is the key for both tables.
I am the database owner, there's no problem of read/write privileges.
Your inputs are highly appreciated.
(select Commonsid from contacts1 where contactid = contacts.contac tid and Commonsid is not null)
where Commonsid is null[/CODE]
This query gives 'Operation must use an updatable query' error. I copied this query to SQLServer 2005, it works fine.
The table 'Contacts1' is copied table of 'Contacts', except that Contacts1 table has values in CommonsID field, while in 'Contacts', the values are null. Contactid is the key for both tables.
I am the database owner, there's no problem of read/write privileges.
Your inputs are highly appreciated.
Comment