为学生提供课程

时间:2014-09-14 07:30:32

标签: php sql codeigniter weblogic-10.x

当学生在一个学期开设课程时,我很困惑。这些是我的表格;

Class
Course
Semester

现在,当前架构是管理员选择的课程列表,这些课程将在2014年秋季的一个学期中以计算机科学学位提供。

现在,第四学期的学生将获得与第三学期不同的课程,以此类推。在最后一点,我很困惑如何将提供的课程分开到学期(1,2等)

这是架构

班级

class_id (int)
class_year (int) 
class_semester (int) F.K
class_course (int) F.K
class_status (int) F.K

学期

sem_id (int)
Sem_name (varchar 100)

当然

course_id (int)
course_code(varchar 10)
course_name (varchar 100)
course_credit (int)

1 个答案:

答案 0 :(得分:0)

在这里,您需要以下列方式设计,引用或链接您的表格:

例如:

Class Table - Suppose you have class A and Class B with class_id as column.

Semester Table- Here you will have reference to your class tables class_id 
so your semester table goes like Semester_ID / Class_ID /...

Courses Table - Here you will have reference to semester_id like course_id /semester_id /...

通过这种方式,您可以访问或创建特定于学期的课程,也可以这样。

如果您有任何疑问,请告诉我。

此致 Zeeshan。

相关问题