i have a table report like this
YYYYMM pipno demand principle interest balance=(demand-principle) 201010 101 5000 500 100 4500 201010 102 1000 750 100 250 201011 103 2000 1500 100 500 201011 102 1000 750 100 250 201011 104 1500 1000 100 500 201011 101 5000 1500 100 3500
// Here in demand field i want to add demand with old balance ie., 4500+5000=9500 where pipno=101, because pipno 101 exists two times and also same if any pipno exists more than once we want to add the demand with existing balance. Plaese reply me as quick
sample o/p
pipno demand principle interest balance=(demand-principle) 101 5000 500 100 4500 102 1000 750 100 250 103 2000 1500 100 500 104 1500 1000 100 500 101 9500 1500 100 8000 102 1250 750 100 500
in demand field i want to bring the balance plus old demand if pipno exists more than once here 101 & 102 exists twice