Sum and Difference of columns in Ms-Acess in Two different tables

試著忘記壹切 提交于 2019-12-25 01:29:44

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!