June 12, 2007 at 5:14 am
June 12, 2007 at 5:32 am
An update statement as given below should be ok. check and let me know.
update test1
set test1.col2 = test2.col2,
test1.col3 = test2.col3
from test1,test2
where test1.col1 = test2.col1
Cheers,
Sugeshkumar Rajendran
SQL Server MVP
http://sugeshkr.blogspot.com
June 12, 2007 at 5:44 am
Yes thats perfect! Its annoying the query builder didn't get me to there.
THanks
June 12, 2007 at 6:55 am
Any chance that table 2 could have new rows in it that aren't in table 1, yet?
Heh... using a tool like Query Builder is great for certain tasks... but, I equate it to someone having an awesome sports car and then letting their Grandmother drive them around in it Although she knows where all the super-markets are and she knows how to cook (you'll be well fed), you're not going to get anywhere fast with the performance capable by what's under the hood, you won't improve your driving skills, and you won't ever get to some of the "cool" places 'cause she just doesn't know where they're at ...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply