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
 SQL Server 2000 Forums
 Transact-SQL (2000)
 SQL Update

Author  Topic 

saidev
Posting Yak Master

101 Posts

Posted - 2006-07-20 : 17:12:09
Hi Guys,

I have two tables


Book1 and Book2

Book1 Book2

sub1 sub5
sub2 sub6
sub3 sub7

I need to update the book1 table columns based on book2 table columns. can you guys help me with SQL Query
Thanks,

tonymorell10
Yak Posting Veteran

90 Posts

Posted - 2006-07-20 : 17:21:10
To update book1 values from book2, something like:

update book1
set col1 = book2.col1
from book2
where <join condition...>

Is this what you're trying to accomplish?
Go to Top of Page
   

- Advertisement -