hw5 SchoolDB SubSuperClasses
hw5 SchoolDB SubSuperClasses
Make sure that you explain in detail all your steps - thoughts. You may get extra points for an appropriate
observation, you may lose some marks due to an obscure solution.
CONTINUED
–2–
1. (100 points) Your task is to design a database for a ”School”, considering only the following points:
(a) Every PERSON in the database will have a ”name” (composite attribute (5 points)), an ”address”,
and a ”telephone” number (multi valued attribute (5 points))
(b) (10 points) A person may be an EMPLOYEE of the school or a STUDENT; an employee may be an
INSTRUCTOR or a general WORKER (manager, secretary, cleaner, ...)
(c) (5 points) The employee class needs a social security number, ”SSN”, and a ”salary” attributes, while
the student one needs a student number, ”Stud No” attribute
(d) An instructor may teach different COURSEs, and every course is taught by only 1 instructor
(e) A student follows different courses, and every course is followed by more than 1 student
(f) The database stores also old students, who do not folllow courses anymore
(g) (15 points) For every course the database stores the list of pre-requisites courses
(h) (10 points) The database stores also the ”grades” of the students
(i) (10 points) For every student the database stores also the CONTACT person, who is normally the
father/mother of the student. The contact entity has ONLY the ”surname”, ”name” and ”telephone”
number attributes. Please, notice that the surname of a contact person is unique only when connected
with the student
Questions: