I have a database with two tables.
1.tblFee_Struct ure.
2.tblStudent_fe es.
tblstudent_fees contains the fields: student_ID,Stud ent_name,Struct ure_ID and fee_paid.
In this case the fields we are concerned about are "Fee_Paid & Structure_ID"
tblFee_Structur e contains two fields: Structure_ID and School_Fees.
-this table has more than 2 records i.e, more than 1 fee structure.
-School_fees Balance is calculated By subtracting "fee_paid" in (tblstudent_fee s) FROM "School_Fee s" in (tblFee_Structu re) i.e (School_Fees)-(fee_paid)
QUESTION:
i would like to create a query that calculates a students fees balance based on the fees structure chosen in tblstudent_fees .
-in a simple query it would be easy if there was only one record in "tblFee_Structu re", but how can it be done with more than one record in that table and even more calculate Balance based on the fees structure of a student??
1.tblFee_Struct ure.
2.tblStudent_fe es.
tblstudent_fees contains the fields: student_ID,Stud ent_name,Struct ure_ID and fee_paid.
In this case the fields we are concerned about are "Fee_Paid & Structure_ID"
tblFee_Structur e contains two fields: Structure_ID and School_Fees.
-this table has more than 2 records i.e, more than 1 fee structure.
-School_fees Balance is calculated By subtracting "fee_paid" in (tblstudent_fee s) FROM "School_Fee s" in (tblFee_Structu re) i.e (School_Fees)-(fee_paid)
QUESTION:
i would like to create a query that calculates a students fees balance based on the fees structure chosen in tblstudent_fees .
-in a simple query it would be easy if there was only one record in "tblFee_Structu re", but how can it be done with more than one record in that table and even more calculate Balance based on the fees structure of a student??
Comment