Hi guys,

I am such a noob when it comes to Accounting.

Guys, what do you call this kind of computation:

Loaned Amount Amount Left

100 900
200 700
300 400

How do you do that in a query? Is it possible to do it in SQL or I would have to revise my ****** program.