SQL with enrollments