I have the following query, and no matter what I do, the Pen field always returns 0
SELECT qryRG_02aa_StudentBookedCount.sce_scjc, qryRG_02aa_StudentBookedCount.SumOfTCB, qryRG_02ba_StudentAchCount.SumOfsmr_mcrd, ((SumOfsmr_mcrd/SumOfTCB) *100) AS PenFROM qryRG_02aa_StudentBookedCount LEFT JOIN qryRG_02ba_StudentAchCount ON qryRG_02aa_StudentBookedCount.sce_scjc = qryRG_02ba_StudentAchCount.sce_scjc
Some sample dataqryRG_02aa_StudentBookedCountsce_scjc TCB0122803/1 16000136696/1 20000145456/1 2000145572/1 200
qryRG_02ba_StudentAchCountsce_scjc smr_mcrd0122803/1 8000136696/1 6000300005/1 7000300371/1 200
Any ideas?