问题
Table : StudentTuitionFee
GradeLevel TuitionFee MiscFee RegistrationFee BooksFee
Grade 1 25,000.00 5,000.00 3,000.00 3,500.00
Table : StudentRegistration
Gradelevel StudentID
Grade 1 50090
Table : Student Profile
StudentID Name
50090 Oliver
Table : Payment
StudentID OR# TuitionPay MiscFeePay RegistrationFeePay BookFeepay
50090 1 5,000.00 500.00 500.00 500.00
50090 2 5,000.00 500.00 500.00 500.00
I'm creating a form that will show the data using the student id which I already able to show in the forms.
My Question is how to calculate the Difference from the StudentTuitionFee table and the Payment table. Using only the StudentID 50090.
The difference of TuitionFee, MiscFee, RegistrationFee and BookFee against all payments done in Payment table on TuitionFeepay, MiscFeePay, RegistrationFeePay and BookFeepay.
来源:https://stackoverflow.com/questions/53494273/sum-and-difference-of-columns-in-ms-acess-in-two-different-tables