School Database Data Dictionary

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

School Database Data Dictionary

EMPLOYEE
Field Data type and length Observations
emp_id Whole Primary key
Ap_emp Character string of length 15 Not null
Am_emp Character string of length 15 Not null
E-mail Character string of length 15 Null
Emp_addr Character string of length 30 Not null
Tlf_emp whole Not null

TEACHER
Field Data type and length Observations
prof_id Whole Primary key
Specialty character string of length 12 Null
Category character string of length 12 Not null

DEPT
Field Data type and length Observations
dept_id Whole Primary key
Dep_name character string of length 30 Not null

STUDENT
Field Data type and length Observations
est_id Whole Primary key
Ap_est character string of length 15 Not null
Am_est character string of length 15 Not null
date date type Not null, MM-DD-YYYY
Age Whole Not null

LOUNGE
Field Data type and length Observations
salon_id Whole Primary key
Guy character string of length 10 Not null

BUILDING
Field Data type and length Observations
building_id Whole Primary key
Name Character string of length 1 Not null

CLASS
Field Data type and length Observations
class_id Whole Primary key
class_hours Whole Not null
COURSE
Field Data type and length Observations
course_id Whole Primary key
cur_name character string length 35 Not null
Description character string of length 30 Not null

REGISTER
Field Data type and length Observations
class_id Whole Primary key
est_id Whole Primary key
Degree Whole Not null
date_ins date type Not null, DD,MM,YY

REPRESENTATIVE

Field Data type and length Observations


rep_id Whole Primary key
C.I_rep
rep_dir Whole Not null
Tlf_rep

Translation to the Relational Model of the School Database

EMPLOYEE
emp_id Ap A.M E-mail

TEACHER
prof_id Specialty Category

DEPT
dep_id Name D
STUDENT
est_id Ap_est Am_est date Age

LOUNGE
salon_id Guy

BUILDING
building_id Name

COURSE
course_id cur_name Description

CLASS
class_id class_hours

REGISTER
Degree date_ins

Definition of Case Study of the School Database


After having carried out the interviews, the following information was obtained:
Currently, the University's information management is carried out manually, since all
records are made with paper.
A database system is needed to carry out school control at the university.
The information that must be recorded is described below:
There are employees, some of whom are teachers. For each employee, an identifier,
name and one or more email addresses are registered.
If an employee is a professor, the category to which he belongs (Associate A, B or C;
or Full Member A, B or C), and his specialty will also be recorded.
There are departments and each department has a unique identifier and name. A
department must have some professor who heads it and several professors can be
employees in a department, but not all professors can be heads.
Each department of the university must offer different courses. Courses have a unique
course identifier, name, description, and credit value. In turn, these courses generate
several classes and the classes are taught by the teachers.
Each teacher must teach at least one class. Each class is taught in a room, which has
a unique room identifier, and a type (normal, laboratory, audiovisual or multipurpose)
and belongs to a building. The building must have an identifier and a name.
Different classes can be taught in a classroom but at different times. To control
schedules, each class has been assigned a class ID, a schedule, and a teacher. Each
class can only be taught in one room.
Student registration is also kept. Their identifier, name, e-mail, date of birth is required.
It is important to know the age of each of them somewhere in the system.
Each student has a single advisor, but a professor can have more than one student to
advise.
Students can enroll throughout their career in different classes. Each class belongs to
only one course. The class identifier and class hours are recorded for the class.
When a student enrolls in one of them, their enrollment date and the grade to which the
student belongs at the time of taking it are captured.

You might also like