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
 Inner join problems...

Author  Topic 

topgun2001
Starting Member

1 Post

Posted - 2010-09-16 : 20:20:23
Hello all!! Awesome place here.. So i'm new to using sql queries and i'm having some problems.. basically, what I have is 2 tables

armor and armor_copy both are pretty much identical im trying to figure out the query command for... eh if columna in armor_copy matches columna in armor then it will update columnb in armor with columnb data from armor_copy..

lol sorry im sure thats a mess .. hard time finding correct way to explain.. So ty all who responds :)

GhantaBro
Posting Yak Master

215 Posts

Posted - 2010-09-16 : 21:50:40
update a
set columnb = b.columnb
from armor a
join armor_copy b
on a.columna = b.columna

quote:
Originally posted by topgun2001

Hello all!! Awesome place here.. So i'm new to using sql queries and i'm having some problems.. basically, what I have is 2 tables

armor and armor_copy both are pretty much identical im trying to figure out the query command for... eh if columna in armor_copy matches columna in armor then it will update columnb in armor with columnb data from armor_copy..

lol sorry im sure thats a mess .. hard time finding correct way to explain.. So ty all who responds :)

Go to Top of Page
   

- Advertisement -