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 |
|
dartingaround
Starting Member
2 Posts |
Posted - 2009-06-10 : 10:14:43
|
| Hello SQL Guru'sI working on a project where I was given 2 tables. Table one is called assets and another table called jfsassetsThere are 2 fields in assets called ASSETNO and USER1There are 2 fields in jfsassets called ASSETNO and PONUMBERI want to copy user1 information from assets table to the PONUMBER in the jfsassets table. The assetno in both tables are identical.Any help would be appreciated.ThanksJB |
|
|
asgast
Posting Yak Master
149 Posts |
Posted - 2009-06-10 : 11:22:40
|
| UPDATE jfassets SET ponumber = a2.informationFROM jfassets aINNER join assets a2 on a.assetno = a2.assetno |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-06-10 : 11:47:49
|
UPDATE jSET PONUMBER = a.USER1FROM jfassets as jINNER join assets as a on a.ASSETNO = j.ASSETNO No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
dartingaround
Starting Member
2 Posts |
Posted - 2009-06-10 : 16:04:37
|
| Worked great guys... Thanks for your help! |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-06-10 : 16:07:55
|
welcome  No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|