I would like to know what is the best way to store a data in a database? Excuse me for my ignorance.
You can seperate the table for Student Enrolled and Student Information, since student can have more than one enrollment.
student_information {student_id(pk), firstname, lastname, dob}
student_enrolled {enrollment_id(pk), student_id(fk), programme, code, schedule}
On these two tables you can store one to many enrollment per student (1st level, 2nd level and so on)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.