Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update with added value
Message
 
 
To
23/08/2007 17:49:52
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01250055
Message ID:
01250058
Views:
14
If you want to UPDATE why are you using INSERT? Can you explain what you're trying to do?

>
>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)
>
><snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform