DBE Model Questions From Unit 1 and 2-1
DBE Model Questions From Unit 1 and 2-1
42. Construct an E-R diagram for the registrar’s office. Document all assumptions that
you make about the mapping constraints.
a. A university registrar’s office maintains data about the following entities: (a)
courses, including 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. Further, the enrollment of students in courses and grades
awarded to students in each course they are enrolled for must be appropriately
modeled.
43. Consider a university database for the scheduling of classrooms for final exams.
This database could be modeled as the single entity set exam, with attributes course-
name, section-number, room-number, and time. Alternatively, one or more additional
entity sets could be defined, along with relationship sets to replace some of the
attributes of the exam entity set, as
• course with attributes name, department, and c-number
• section with attributes s-number and enrollment, and dependent as a weak entity set
on course
• room with attributes r-number, capacity, and building
Show an E-R diagram illustrating the use of all three additional entity sets listed.
44. Suppose you are given the following requirements for a simple database for the
National Hockey League (NHL):
•the NHL has many teams,
•each team has a name, a city, a coach, a captain, and a set of players,
•each player belongs to only one team,
•each player has a name, a position (such as left wing or goalie), a skill level, and a set of
injury records,
•a team captain is also a player,
•a game is played between two teams (referred to as host_teamand guest_team) and has a
date (such as May 11th, 1999) and a score (such as 4 to 2).
Construct a clean and concise ER diagram for the NHL database using the Chen notation as
in your textbook. List your assumptions and clearly indicate the cardinality mappings as well
as any role indicators in your ER diagram.
45. Convert the following ER-Model into an equivalent relational model of a hospital
database system.