I am using PostgreSQL and PERL to write a financial application. This may seem like an easy accomplisment but i'm not sure how to do it. I just need to keep a running total stored in a database table. The easiest way i can think of to do this is to base it on the last balance. Adding or subtracting the amount from that. I just need to know how to make the very last balance accessable. Should use some sort of auto-increment or something like that. I need a little input. Thanks