Click here to Skip to main content
15,919,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
some syntax error in sql server when updating one column of a file with other column ofa other file

my code is
update invDB.sum(itmqty)=stkDB.itmsl_rtn from invDB inner join stkDB on invDB.itemid=stkDB.itmcode where stkDB.itmcode=1333


What I have tried:

I googled for solution but came with no suitable result
Posted
Updated 17-Jul-17 6:13am
v2

1 solution

Um. You seem to be trying to assign a value to the result of a function?
Did you mean to do the assignment the other way around?
UPDATE stkDB.itmsl_rtn = invDB.SUM(itmqty) FROM ...
 
Share this answer
 
Comments
vijay_bale 18-Jul-17 1:45am    
I am trying to copy sum of quantity of a column of a one file to other column of other file

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900