G
Guest
I have two tables as follows:
Client Balances
------------------
Contains.... Division ID; Client ID; Current Balance
Monthly Transactions
-------------------------
Contains..... Division ID; Client ID; Transaction Amount
The Monthly Transactions table may have more than one transaction per client.
Also some transactions relate to existing clients but others are new ie.
there is not a matching Client Balance record.
I need to
a. update the balances on the matching Client Balances records with data
from the Monthly Transaction records
b. create a new Client Balance record where one does not exist, using the
data from the Monthly Transactions record
Could you please describe the queries I need to carry out the above processes?
Thanks in anticipation.
Client Balances
------------------
Contains.... Division ID; Client ID; Current Balance
Monthly Transactions
-------------------------
Contains..... Division ID; Client ID; Transaction Amount
The Monthly Transactions table may have more than one transaction per client.
Also some transactions relate to existing clients but others are new ie.
there is not a matching Client Balance record.
I need to
a. update the balances on the matching Client Balances records with data
from the Monthly Transaction records
b. create a new Client Balance record where one does not exist, using the
data from the Monthly Transactions record
Could you please describe the queries I need to carry out the above processes?
Thanks in anticipation.