Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update SQL - use value derived from a related select result
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Update SQL - use value derived from a related select result
Divers
Thread ID:
00864801
Message ID:
00864801
Vues:
58
Using VFP8 and attempting to run an Update _ SQL type command to set the value of a field in 1 table based upon whatever data is found in the corresponding equivalent field in another table with that update-source data being derived via an SQL Select query where a common key field exists to link the related rows between the source table and the target.

Syntax attempted so far in VFP8 against these VFP8 tables (based upon syntax that works against identical MS SQL Server tables when this update is run from within Query Analyzer against SQL Server tables) is of the form:

UPDATE moneyfields SET ttladjusts = ;
        (SELECT query.adjusts FROM query JOIN moneyfields ON VAL(query.control) = VAL(moneyfields.control))

Perhaps needless to say - this does not run. An error is generated of the form "Function name is missing )".

Any suggestions please? /psb
 
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform