posted 17 years ago
HI every body
my case is:
i have rows in database like this:
-------------------------------------------------------------------
cust_id bene_id amt
------- --------- -------
1001 2001 1000
2001 1001 1200
1001 2001 500
so instead of doing three transfers , if go as a overall transfer,
we have to transfer from 1001 to 2001 300
so the query should return as
cust_id bene_id amt
------- --------- -------
1001 2001 300
so please help me how can we do this in a query.
Thanks & Regards<br />Mallik Avula<br />SCJP1.4