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 |
|
skillile
Posting Yak Master
208 Posts |
Posted - 2002-06-03 : 17:26:54
|
| /*table Ordersord# custUID custLink custOffid1 534 ot-112 534 ot-113 498 ot-454 498 ot-45table Customer UserUID custLink custOffid DB1 534 ot-11 12 498 ot-45 11 111 ot-11 2 * this is OK cause John is in two differenct DB's I am trying to assign customers to orders on a data pull.The order record has a customer link. I want to updatetable orders with the correct custUID from table [Customer User:UID]How can I best update [table orders:custUID] with the correct [table Customer User:UID]Thanks in advance*/slow down to move faster... |
|
|
efelito
Constraint Violating Yak Guru
478 Posts |
Posted - 2002-06-03 : 17:45:07
|
| UPDATE [table orders] SET custUID = tcu.UIDFROM [table Customer User] tcuWHERE [table orders].custUID = tcu.custLinkJeff BanschbachConsultant, MCDBA |
 |
|
|
Merkin
Funky Drop Bear Fearing SQL Dude!
4970 Posts |
|
|
|
|
|