Implementing dynamic logic of Enrollment table