thnx for ur answer :)
but I have multiple table and I want to get sum of fields in different table
for example:
table1 has (ID,payment) ... table 2 (ID,payment) .... table3 (ID,payment)
and there is a relationship between every single table and a customer table
so I want to sum all the payment...