Professional Documents
Culture Documents
CSC 341: Homework #3 E-R Design For College Registrar's Database
CSC 341: Homework #3 E-R Design For College Registrar's Database
Recall: The following table headers represent a possible (considerably simplified) design
for a University Registrar’s database. In this database we need to keep track of student
records, courses and their sections, instructors assigned to teach these course sections, and,
most importantly, which students are enrolled in which sections.
Students
stu_id l_name f_name m_name major phone address GPA class
Foreign key :
Locations
bldg room_num room_type num_seats
Foreign key :
Instructors
instr_id l_name f_name department bldg room_num phone email
Course_Sections
Enrollment
stu_id sect_id
Foreign key :
The following diagram (see next page) represents incomplete E-R design for the above
database. This design is unfinished:
Names of attributes and relationships are missing
Some of the relationships between entities in the database are not shown at all
Cardinalities of relationship and attributes are not shown
1. Your first task is to complete the design by providing these missing elements.
Please note: foreign key attributes in the tables do not show up as ovals attached to the
corresponding rectangles; for example, the box representing Course_Sections should
not have an oval for course_id (foreign key into Courses) attached to it.
m_name
l_name f_name
name
course_id
stu_id
Students Courses
have
enroll_in
instr_id
sect_id
Course_ Instructors
Sections
name
fname
lname
bldg Locations
roomNum