Hi all, hoping you can help me out with my database (you can see it attached). What I need to design is a database for a taecher to use to help them with a class. So as this will only be used by one teacher there is no need for a teachers table. However, the teacher may teach more than one class and a student may be in more than one class taught by that teacher. For this I have created the 'Enrollment' table. This means that a student can be in multiple classes with the unique Enrollment ID. However the problem I have is that it is letting a student enroll in the same subject more than once as only the key needs to be different.
Eg.
1 Jenny Maths
2 Jenny Maths
This should not be able to happen, however if I drop the Enrollment key and link classes straight to students, it means that each student can not be in more than one class.
Any other feedback about the database/schema design very welcome.