You can separate courses, students, schedules, and course selection relationships into four separate tables.
课程表
课程ID
课程名称
讲师姓名
第几周到第几周
...
学生
学生ID
学生姓名
...
日程表
日程ID
课程ID
星期几
第几节课
...
选课关系
选课关系ID
学生ID
课程ID
Now that you know the name of the student, if you want to search for those classes that you will take tomorrow afternoon, just do this: Get the student ID based on the name from the student table, and get the course IDs of all the courses he has chosen based on the student ID from the course selection relationship, from The course schedule gets the start and end time of each course based on the course ID, keeping those courses that match tomorrow's date. Then get the courses that may be taken tomorrow afternoon from the schedule based on the course ID. That’s about it, I think. I've never done anything like this, so I just made a guess. Hope that helps.
You can separate courses, students, schedules, and course selection relationships into four separate tables.
Now that you know the name of the student, if you want to search for those classes that you will take tomorrow afternoon, just do this:
Get the student ID based on the name from the student table, and get the course IDs of all the courses he has chosen based on the student ID from the course selection relationship, from The course schedule gets the start and end time of each course based on the course ID, keeping those courses that match tomorrow's date. Then get the courses that may be taken tomorrow afternoon from the schedule based on the course ID.
That’s about it, I think. I've never done anything like this, so I just made a guess. Hope that helps.