How do I create an attendance table that depends on enrolment data that I have captured and is stored in the system already