Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update with added value
Message
De
23/08/2007 17:49:52
Issam Mansour
Jordan Business Machines
Amman, Jordanie
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Update with added value
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01250055
Message ID:
01250055
Vues:
66
Hi,

I try to update a file add value to the exiting value, the statement as follows:-

INSERT INTO amaster
(cmdb, cmcr, ccmdb, ccmcr)
SELECT damt + amaster.cmdb AS Expr1, camt + amaster.cmcr AS Expr2, cdamt + ccmdb AS Expr3, ccamt + ccmcr AS Expr4
FROM transact
WHERE (acctno = amaster.acctno)

I have the following error on exec.

Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "amaster.acctno" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "amaster.cmdb" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "amaster.cmcr" could not be bound.
Msg 207, Level 16, State 1, Line 3
Invalid column name 'ccmdb'.
Msg 207, Level 16, State 1, Line 3
Invalid column name 'ccmcr'.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform