Sum

kernel76

Registered User.
Local time
Today, 13:26
Joined
Oct 17, 2003
Messages
27
HI and happy new year!
i've a question
i'm beginner for sql programming

ok

there are 2 tables X and Y with 3 field each: a,b,c and a1,b1,c1
i want in Y.c1 the SUM of X.b + Y.b1
They are numeric field
thanks for any reply!
 
First, I'll say that most users don't suggest storing calculated values (but you probably already knew that). What field are you joining the tables on?
 
ok the join is on fields X.a and Y.a1
 
Last edited:
UPDATE x INNER JOIN y ON x.a = y.a1 SET y.c1 = [x].+[y].[b1];
 

Users who are viewing this thread

Back
Top Bottom