Please can you help me structure my tables well so i can proceed with my project?This will sum by day by each student fees due by fee type
SELECT fees.feesdate, fees.student_id, fees.feetype, Sum(fees.feeamount) AS SumOffeeamount
FROM fees
GROUP BY fees.feesdate, fees.student_id, fees.feetype;
For this you have to add student_id field in your payment table, then create a relationship between it and the fees table, though i still have a feeling your database is still not well structured.
I really help you help and support. I would not mind if i have to start from scratch please