Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to calculate a "Balance" Column

fatehcis-JavaNetMay 3 2011 — edited May 5 2011
Hi guys,
Can I calculate "Balance" Column from "debit" & "credit" columns:

Credit   Debit   Balance

50           25        25
100           --        125
--           --        125
--           25        100
200           50        150

Namely, In the last recored 150 should be calculated as following:
100 (old balance) + 200 Credit - 50 Debit.

Thanks In Advance And Best Wishes,
Fateh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2011
Added on May 3 2011
5 comments
798 views