Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL update field from another table
Versions des environnements
I have a cust.dbf and an orders.dbf. The key of cust.dbf is custkey. The key of orders.dbf is custkey, orderseq. There is region field that is on both tables (I know, bad design), that has gotten out of sync between the customer and order tables. I want to find and replace the orders.region with the cust.region where cust.custkey = orders.custkey and cust.region != orders.region.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement