E R Examples
E R Examples
ID buy Policy
License Color
own
Customer
Year
Car
Amount
Name
Model
has_accident
Address
Date
Number
University
• A university registrar’s office maintains data about the
following entities: (a) courses, including course number,
title, credits, syllabus, and prerequisites; (b) course
offerings, including course number, year, semester, section
number, instructor(s), timings, and classroom; (c) students,
including student-id, name, and program; and (d)
instructors, including identification number, name,
department, and title. Furthermore, the enrollment of
students in courses and grades awarded to students in each
course they are enrolled for must be appropriately
modeled.
Construct an E-R diagram for the registrar’s office.
Document all assumptions that you make about the mapping
constraints.
University
• A university registrar’s office maintains data about the
following entities: (a) courses, including course number,
title, credits, syllabus, and prerequisites; (b) course
offerings, including course number, year, semester, section
number, instructor(s), timings, and classroom; (c) students,
including student-id, name, and program; and (d)
instructors, including identification number, name,
department, and title. Furthermore, the enrollment of
students in courses and grades (transcript) awarded to
students in each course they are enrolled for must be
appropriately modeled.
Construct an E-R diagram for the registrar’s office.
Document all assumptions that you make about the mapping
constraints.
TIming Year
Classroom Semester
Offering
Section
number is_offered
teach
Syllabus Name
Courses Dept
Pre- Instructor
requisite
Transcript
ID Title
Title
Name
Credit Grade
Student
Program
GOOD ENOUGH?
ID
Problem
• Prerequisites are also courses, need to be
constrained so that they are “courses”
• The key of offerings contains all attributes –
not so good