Download presentation
Presentation is loading. Please wait.
Published byEvan Blackwood Modified over 10 years ago
1
Example 2 – Schemas ES1 and ES2 Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, name, programme) Teaches(lecturerId, studentId) Department(deptName, deptHead) Course(courseId, courseName, units) Enrollment(studentId, year) Staff(staffId, name, deptName) Teaches(staffId, courseId) CourseEnrollments(studentId,year, courseId)
2
Example 2 – Schemas ES1 and ES2 Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, name, programme) Teaches(lecturerId, studentId) Department(deptName) Department(deptName, deptHead) Course(courseId, courseName, units) Enrollment(studentId, year) Staff(staffId, name, deptName) Teaches(staffId, courseId) CourseEnrollments(studentId,year, courseId)
3
Example 2 – Schemas ES1 and ES2 Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, name, programme) Teaches(lecturerId, studentId) Department(deptName) Department(deptName, deptHead) Course(courseId, courseName, units) Enrollment(studentId, year) Lecturer(staffId, name, deptName) Teaches(staffId, courseId) CourseEnrollments(studentId,year, courseId)
4
Example 2 – Schemas ES1 and ES2 Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, name, programme) Teaches(lecturerId, studentId) Department(deptName) Department(deptName, deptHead) Course(courseId, courseName, units) Enrollment(studentId, year) Lecturer(lecturerId, name, deptName) Teaches(lecturerId, courseId) CourseEnrollments(studentId,year, courseId)
5
Example 2 – Schemas ES1 and ES2 Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, courseName, programme) Teaches(lecturerId, studentId) Department(deptName) Department(deptName, deptHead) Course(courseId, courseName, units) Enrollment(studentId, year) Lecturer(lecturerId, name, deptName) Teaches(lecturerId, courseId) CourseEnrollments(studentId,year, courseId)
6
Example 2 – Schemas ES1 and ES2 Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, courseName, programme) TeachesStudents(lecturerId, studentId) Department(deptName) Department(deptName, deptHead) Course(courseId, courseName, units) Enrollment(studentId, year) Lecturer(lecturerId, name, deptName) Teaches(lecturerId, courseId) CourseEnrollments(studentId,year, courseId)
7
Merging ES1 and ES2 Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, courseName, units, programme) TeachesStudents(lecturerId, studentId) Department(deptName, deptHead) Enrollment(studentId, year) Teaches(lecturerId, courseId) CourseEnrollments(studentId,year, courseId)
8
Improving the merged schema Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, courseName, units, programme) TeachesStudents(lecturerId, studentId) Department(deptName, deptHead) Teaches(lecturerId, courseId) CourseEnrollments(studentId,year, courseId)
9
Improving the merged schema Student(studentId, name, address, tutorId) Staff(tutorId, name, deptName) Lecturer(lecturerId, name, deptName) Course(courseId, courseName, units, programme) Department(deptName, deptHead) Teaches(lecturerId, courseId) CourseEnrollments(studentId,year, courseId)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.