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