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 |
|
zubairmasoodi
Starting Member
35 Posts |
Posted - 2007-02-27 : 07:46:29
|
| Hi allSuppose i have Two Tables ( A & B) With The following same Table structure Table A Emp_id P.K Emp_Name Varchar Sal intTable B Emp_id P.K Emp_Name Varchar Sal intBoth The tables contain the data except the fact That sal column of Table B currently Contain Null Values I want an Sql query which will update the sal column of Table B with that Sal column of Table A. Thanks in Advance |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-02-27 : 07:49:38
|
| [code]Update BSet Sal = A.SalFrom B JOIN AON B.Emp_id = A.Emp_id[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
zubairmasoodi
Starting Member
35 Posts |
Posted - 2007-02-27 : 08:05:02
|
| Thanks Harsh |
 |
|
|
|
|
|