Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to update a table

Author  Topic 

chandusama
Starting Member

13 Posts

Posted - 2008-01-30 : 03:06:30
I hav a doubt here
how to update a column of table1....using the values of another column in another table?

Sama

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-01-30 : 03:13:04
UPDATE t2
SET t2.Field1=t1.Field1
FROM Table1 t1
INNER JOIN Table2 t2
ON t2.CommonCol=t1.CommonCol
Go to Top of Page
   

- Advertisement -