normally you wouldn't store the sum of all the payments together like this
normally you have a total and payments
total
TOTAL_ID
TOTAL_AMOUNT
payments
PAYMENT_ID
TOTAL_ID
PAYMENT_AMOUNT
you might need to add users into this, but you normally don't want a column to be updated from the sum constantly, calculate each time you do a select
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143