How can I make the sum of two columns of two different tables ?
In my case , I want sum the two columns of different table , and in the first table to return the value added .
Example :
Tbl_one
colum ID | colum Point
1 | 1000
2 | 2000
tbl_two
colum ID | colum Point
1 | 10000
2 | 5000
RESULT
Tbl_one
colum ID | colum Point
1 | 11000
2 | 7000
I tried this query , but it did not work very well
UPDATE tbl_1 SET tlb_1.columX= tbl_1.columX + tbl_2.columY
RESULT ERROR: #1054 - Unknown column 'tbl_2.columY' in 'field list'