R
robinson via AccessMonster.com
If a family has more than one child studying, then the second and third child
would have a discount of 5%. The discounted fees is for the younger children.
This means Choo SWoo would pay the full fees while Cho SMin and Cho SWon
would only pay the discounted fees (i.e. only 95% of the Tuition Fees). The
discount would be based on the Date of Birth (DOB).
StudentName DOB Class FathersName Fees
Cho SWoo 12/5/1995 Year 7 Yong Joon RM3,000.00
Cho SMin 15/4/1997 Year 5 Yong Joon RM2,000.00
Cho SWon 29/4/1999 Year 4 Yong Joon RM2,000.00
Please make modification to the SQL commands below so that I could obtain the
desired results.
SELECT tblStudent.StudentName, tblStudent.DOB, tblStudent.Class, tblStudent.
FathersName, tblStudent.Fees, [Fees]*IIf(DCount("*","Student ",
"FathersName=""" & [FathersName] & """ AND StudentName <""" & [StudentName] &
"""")=0,1,0.95)
AS Discounted
FROM Student;
Please help. Thank you.
Robinson
would have a discount of 5%. The discounted fees is for the younger children.
This means Choo SWoo would pay the full fees while Cho SMin and Cho SWon
would only pay the discounted fees (i.e. only 95% of the Tuition Fees). The
discount would be based on the Date of Birth (DOB).
StudentName DOB Class FathersName Fees
Cho SWoo 12/5/1995 Year 7 Yong Joon RM3,000.00
Cho SMin 15/4/1997 Year 5 Yong Joon RM2,000.00
Cho SWon 29/4/1999 Year 4 Yong Joon RM2,000.00
Please make modification to the SQL commands below so that I could obtain the
desired results.
SELECT tblStudent.StudentName, tblStudent.DOB, tblStudent.Class, tblStudent.
FathersName, tblStudent.Fees, [Fees]*IIf(DCount("*","Student ",
"FathersName=""" & [FathersName] & """ AND StudentName <""" & [StudentName] &
"""")=0,1,0.95)
AS Discounted
FROM Student;
Please help. Thank you.
Robinson