V
VB Programmer
I am working on an ASP.NET 2.0 banking-type application. No, it's NOT a
school question! This is a real-world web application.
The table "Transactions" contain all types of individual "transactions" -
interest_payment, deposits, withdrawals & fees mostly. Each of these
entries are related to an "account". (So, of course, summing all of these
would give the current account "balance".)
On a nightly basis I have to do this...
FOR EACH "account" I need to (1) get the current "balance" of the account,
(2) increase it by a small set percentage (all accounts get the same %
increase) then (3) insert a NEW interest_payment record in the Transactions
table for EACH account.
Any idea how I should go about this?
I'm not sure if I can do this in 1 or 2 steps (like a large SQL statement)
or if I have to write some VB.NET code and loop thru every record. I'd
appreciate your insight.
Thanks in advance!
school question! This is a real-world web application.
The table "Transactions" contain all types of individual "transactions" -
interest_payment, deposits, withdrawals & fees mostly. Each of these
entries are related to an "account". (So, of course, summing all of these
would give the current account "balance".)
On a nightly basis I have to do this...
FOR EACH "account" I need to (1) get the current "balance" of the account,
(2) increase it by a small set percentage (all accounts get the same %
increase) then (3) insert a NEW interest_payment record in the Transactions
table for EACH account.
Any idea how I should go about this?
I'm not sure if I can do this in 1 or 2 steps (like a large SQL statement)
or if I have to write some VB.NET code and loop thru every record. I'd
appreciate your insight.
Thanks in advance!