English 中文(简体)
学校管理系统数据库正常化
原标题:Database normalization for School Management System

I am creating system for a school management system and come up with the attached database schema.

“Database

该系统如何运作:

  1. A school has many students and teachers. It has also many courses(subjects) taught. A grade level can have many courses assigned. These courses in turn will be assigned to the students in that particular grade.
  2. The levels of students are categorized into grades and sections. A student can be in Grade 5, but if grade 5 students are huge in number, they are divided into sections. eg: Grade 5 section A, Grade 5 section B.
  3. Students are placed in unique classrooms. A classroom will be unique throughout. Classroom of Grade 5 Section A of year 2010 will be different from Classroom of Grade 5 Section A of year 2011.
  4. Students are assigned parents. A parent can have more than one student in the school.
  5. One or more classrooms can be assigned to a teacher.
  6. Attendance for students are taken by their teacher on a daily basis
  7. There will be many types of exams. Exam results are stored for each subject (course).

我是数据库正常化的开端人,如果数据库看不清,任何人都可以向我提供一些内幕,我将感到高兴。

EDIT:

此外,只有一个记录点。 在以上情况下,在登录时,用户必须从下降名单中选择用户类型。 这种减员选择将用来向相关表格查询,以记录系统。 另一项选择是使用一个共同的“条形”用户/密码表,该表将储存“条形”用户_id、电子邮件、密码、最后_login_date、最后_login_ip >/条形,但将储存在相应的表格中的其他详情,例如:“条形表”、括号、母体、教师名称/密码。 因此,执行《公约》的最好/正确方式如何?

问题回答

页: 1

除非你的学校每夏天都有大规模的拆除和建筑方案,否则教室也将如此。 这是每年变动的分号>。 因此,应当将CLCSSROOMS分配给一个单独的全球资源中心。 SECTION实体,而不是像现在这样合并的SECTIONS和CLLASSROOMS。

学生应被分配到巴西统计局。

财团应当拥有许多EXAMS,而不是许多EXAM_。 RESULTS。 完全没有意义的是,学习数学和俄语的学生可以选择法语考试。

The line from Attendance (many) should be drawn to the Classroom_Student (1) instead. Drawing the attendance to the students is not possible I think.





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签