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 |
|
tribune
Posting Yak Master
105 Posts |
Posted - 2005-10-04 : 18:27:19
|
| [code]update TableA A set A.Field1 = B.Field1from TableB Bwhere A.Field2 = B.Field2[/code]This doesn't work unless I remove the alias for TableA. How do you alias a table with this statement? Thanks |
|
|
nathans
Aged Yak Warrior
938 Posts |
Posted - 2005-10-04 : 18:47:42
|
| [code]update aset field1 = b.field1from tableA ainner join tableB on a.field2 = b.field2[/code]Nathan Skerl |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-10-05 : 00:36:15
|
quote: Originally posted by nathans
update aset field1 = b.field1from tableA ainner join tableB on a.field2 = b.field2 Nathan Skerl
Small Correctionupdate aset field1 = b.field1from tableA ainner join tableB b on a.field2 = b.field2 MadhivananFailing to plan is Planning to fail |
 |
|
|
nathans
Aged Yak Warrior
938 Posts |
Posted - 2005-10-05 : 00:45:54
|
Doh!Good catch Nathan Skerl |
 |
|
|
tribune
Posting Yak Master
105 Posts |
Posted - 2005-10-05 : 01:52:06
|
| thanks! |
 |
|
|
|
|
|