Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Sum of 2 field from different table

$
0
0

Hi, I'm new with SQL 2008 and I have one question where I need help.

I have 2 tables (Table1) and (Table2) in same database 

2 tables have similar rows like this :

==============================

Table1:

ID Name Number

1david 3

==============================

Table2:

ID Name Number

1 david 2

==============================

So i want to sum of "Number" from table1 and table2 updated in table1 like this :

Table1 must be :

ID Name Number

1 david 5

How can do this with script ?

Thanks in advance




Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>