The main scenario: I have students, courses and course requirements that need to be saved in the database.
Does anyone have an idea of the best way to store these and prerequisites?
1) A simple example:
- C: Math 100, prereq: none
- C: Math 150, prereq: none
- C: Math 200, prereq: Math 101, Math 150
Student. Completed Math 100. How to determine if it can accept CS200 through a database query?
2) A more complex example:
- C: Chem 100, prereq: none
- C: Chem 200, prereq: Chem 100
- C: Chem 201, prereq: Chem 200
- C: Chem 202, prereq: Chem 200
- C: Chem 300, prereq: any two of Chem 200, Chem 201, Chem 202
Student B graduated from Chem 100, Chem 200, Chem 203. How can you verify that he is eligible to accept Chem 300?
? , , .