Escolar Documentos
Profissional Documentos
Cultura Documentos
E-R Diagram
Rectangles entity sets Ellipses attributes Diamonds relationship sets Double ellipses multivalued attributes Dashed ellipses derived attributes Double lines total participation Double rectangles weak entity sets Double diamonds identifying relationship sets
Fall 2006
entities:
courses, including number, title, credits, syllabus, and prerequisites; course offerings, including course number, year, semester, section number, instructor(s), timings, and classroom; students, including student-id, name, and program; instructors, including identification number, name, department, and title.
Further, the enrollment of students in courses and grades awarded to
Fall 2006
Entities
student
courseoffering
instructor
course
Fall 2006
Course
courses including number, title, credits, syllabus,
and prerequisites
Attribute? Relationship?
courseno require s
prerequisite maincourse
credits
course
syllabus title
Fall 2006
Course Offering
course offerings, including course number, year,
course
is_offere d
courseoffering
room
year
secno
Fall 2006
Weak Entity
A weak entity can only be identified uniquely by
combining the primary key of another (owner) entity and the partial key of itself.
Owner entity set and weak entity set must participate
Fall 2006
Student, Instructor
students, including student-id, name, and program instructors, including identification number, name,
student
instructor
program
dept
title
Fall 2006
Enrollment
Further, the enrollment of students in courses and
grades awarded to students in each course they are enrolled must be appropriately modeled.
student
enrolls
courseoffering
grade
Fall 2006
Anymore??
Instructor teaches course..
courseoffering
teache s
instructor
10
Fall 2006
11
Fall 2006
12
Fall 2006
13
Fall 2006
14
Fall 2006
Weak Entities
15
Fall 2006
Weak Entities
course-offering (courseno, secno, year, semester,
time, room)
16
Fall 2006
17
Fall 2006
18
Fall 2006
19
Fall 2006
the weak entity. course-offering (courseno, secno, year, semester, time, room)
20
Fall 2006
time, room)
enrolls (sid, courseno, secno, semester, year, grade) teaches (courseno, secno, semester, year, iid) requires (maincourse, prerequisite)
21
Fall 2006