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

regarding sqlserver

$
0
0

hi,

 i have two tables 

1) empmaster

2) emp child

1) empmaster

id      sal

11110000

22215000

33366666
4447654

2) empchild

id     sal

1112000
1114000
333567
333876
444879

in child table paid salaries in different times

finally what i want is balance salary paid to employess

i have to join two tables

my output should be like this

id      sal

111    4000

222    15000

333     65223

444     6775

please help me


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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