Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with my Update statement?
Message
De
22/10/2004 14:16:40
 
 
À
22/10/2004 09:38:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP3
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
00953709
Message ID:
00953823
Vues:
14
Hey Angie,

What about:
UPDATE subcust SET subcust.ccustcode = customer.ccustcode WHERE subcust.custkey=customer.custkey
Aloha,

James
>Hello everyone,
>
>I am trying to formulate some T-SQL to update a new column in a sub-customer table (cCustCode) with the value of cCustCode from its parent table. The parent table is called Customer and the child table is called SubCust. They are related at the moment using CustomerKey. I have tried the following SET statement but it only updates with a single value. What am I doing wrong :(
>
>Also, can you use an alias for subcust (after the update statement) ?
>
>
>update subcust
>	set ccustcode = customer.ccustcode
>	from subcust join customer
>	on subcust.customerkey = customer.customerkey
>
>
>Thank you so much!
>
>Angie.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform