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.
| Author |
Topic |
|
Jpack23
Starting Member
1 Post |
Posted - 2007-10-11 : 14:51:16
|
| Hi,I need to update Multiple columns in one table with corresponding data from another table.exampleTable ACol1Col2Col3Col4Col5Table BColAColBColCColDColEneed to update TableA.Col3,TableA.Col4,TableA.Col5with Data From TableB.ColC,TableB.ColD,TableB.ColEWhere TableB.ColA = TableA.Col1Thanks you very much for your time and helpj |
|
|
PurpleSun
Yak Posting Veteran
50 Posts |
Posted - 2007-10-11 : 16:53:33
|
| update TableA set col3 = colC, col4 = colD from TableB inner join TableA on TableB.colA = TableA.col1 |
 |
|
|
|
|
|