Hello,
I have a master/detail table, in the detail I have a filed payment and another field sum_payment, all I want is when a new record is inserting the values of the field payment to displayed in the field sum_payment. I tried default value but nothing supports this, also tried query's in Mysql Manager but I get a lock timeout
SELECT
SUM(user_payments.payment) AS Sum_payment
FROM
user_payments
I want to every new record that is inserting the value of sum_payment to increase as the ammount of the payment, I want the total sum of the fields payment to held in the field sum_payment or I have to create a new table with relation to the detail and a field which will hold the sum?
Thank you
Kyriakos