I want to copy data from one column to another column of other table. How can I do that?
I tried the following:
Update tblindiantime Set CountryName =(Select contacts.BusinessCountry From contacts)
but it did not work.
I want to copy “BusinessCountry” column of contact table to “CountryName” column of tblindiantime table.
In SQL Server 2008 you can use a multi-table update as follows:
You need a join condition to specify which row should be updated.
If the target table is currently empty then you should use an INSERT instead: