Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (2024)

Abraham Silberschatz, Henry Korth, S. Sudarshan

Chapter 6

Database Design and the E-R Model - all with Video Answers

Educators

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (1)

Chapter Questions

01:34
Problem 1

Construct an E-R diagram for a car insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents.

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (4)

Jon Southam

Numerade Educator

Problem 2

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.
Construct an E-R diagram for the registrar's office. Document all assumptions that you make about the mapping constraints.

Check back soon!

Problem 3

Consider a database used to record the marks that students get in different exams of different course offerings.
a. Construct an E-R diagram that models exams as entities, and uses a ternary relationship, for the database.
b. Construct an alternative E-R diagram that uses only a binary relationship between students and course-offerings. Make sure that only one relationship exists between a particular student and course_offering pair, yet you can represent the marks that a student gets in different exams of a course offering.

Check back soon!

03:56
Problem 4

Design an E-R diagram for keeping track of the exploits of your favorite sports team. You should store the matches played, the scores in each match, the players in each match, and individual player statistics for each match. Summary statistics should be modeled as derived attributes

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (9)

Kris Bright

Numerade Educator

Problem 5

Consider an E-R diagram in which the same entity set appears several times. Why is allowing this redundancy a bad practice that one should avoid whenever possible?

Check back soon!

Problem 6

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 coursename, 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
a. Show an E-R diagram illustrating the use of all three additional entity sets listed.
b. Explain what application characteristics would influence a decision to include or not to include each of the additional entity sets.

Problem 7

When designing an E-R diagram for a particular enterprise, you have several alternatives from which to choose.
a. What criteria should you consider in making the appropriate choice?
b. Design three alternative E-R diagrams to represent the university registrar's office of Practice Exercise 6.2. List the merits of each. Argue in favor of one of the alternatives.

Check back soon!

Problem 8

An E-R diagram can be viewed as a graph. What do the following mean in terms of the structure of an enterprise schema?
a. The graph is disconnected.
b. The graph is acyclic.

Check back soon!

Problem 9

Consider the representation of a ternary relationship using binary relationships as described in Section 6.5.3 and illustrated in Figure 6.29 (attributes not shown).
(FIGURE CAN'T COPY)
a. Show a simple instance of $E, A, B, C, R_A, R_B$, and $R_C$ that cannot correspond to any instance of $A, B, C$, and $R$.
b. Modify the E-R diagram of Figure $6.29 \mathrm{~b}$ to introduce constraints that will guarantee that any instance of $E, A, B, C, R_A, R_B$, and $R_C$ that satisfies the constraints will correspond to an instance of $A, B, C$, and $R$.
c. Modify the translation above to handle total participation constraints on the ternary relationship.
d. The above representation requires that we create a primary-key attribute for $E$. Show how to treat $E$ as a weak entity set so that a primary-key attribute is not required.

Check back soon!

Problem 10

A weak entity set can always be made into a strong entity set by adding to its attributes the primary-key attributes of its identifying entity set. Outline what sort of redundancy will result if we do so.

Check back soon!

Problem 11

Figure 6.30 shows a lattice structure of generalization and specialization (attributes not shown). For entity sets $A, B$, and $C$, explain how attributes are inherited from the higher-level entity sets $X$ and $Y$. Discuss how to handle a case where an attribute of $X$ has the same name as some attribute of $Y$.

Check back soon!

04:20
Problem 12

Consider two separate banks that decide to merge. Assume that both banks use exactly the same E-R database schema-the one in Figure 6.25. (This assumption is, of course, highly unrealistic; we consider the more realistic case in Section 22.8.) If the merged bank is to have a single database, there are several potential problems:
- The possibility that the two original banks have branches with the same name
- The possibility that some customers are customers of both original banks
- The possibility that some loan or account numbers were used at both original banks (for different loans or accounts, of course)
For each of these potential problems, describe why there is indeed a potential for difficulties. Propose a solution to the problem. For your solution, explain any changes that would have to be made and describe what their effect would be on the schema and the data.
(FIGURE CAN'T COPY)

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (19)

Jennifer Stoner

Numerade Educator

Problem 13

Reconsider the situation described for Practice Exercise 6.12 under the assumption that one bank is in the United States and the other is in Canada. As before, the banks use the schema of Figure 6.25, except that the Canadian bank uses the socialinsurance number assigned by the Canadian government, whereas the U.S. bank uses the social-security number to identify customers. What problems (beyond those identified in Practice Exercise 6.11) might occur in this multinational case? How would you resolve them? Be sure to consider both the schema and the actual data values in constructing your answer.

Check back soon!

Problem 14

Explain the distinctions among the terms primary key, candidate key, and superkey.

Check back soon!

Problem 15

Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors. Associate with each patient a $\log$ of the various tests and examinations conducted.

Check back soon!

01:05
Problem 16

Construct appropriate tables for each of the E-R diagrams in Practice Exercises 6.1 to 6.2 .

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (25)

Raj Bala

Numerade Educator

03:56
Problem 17

Extend the E-R diagram of Practice Exercise 6.4 to track the same information for all teams in a league.

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (28)

Kris Bright

Numerade Educator

00:14
Problem 18

Explain the difference between a weak and a strong entity set.

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (31)

Sisi Gao

Numerade Educator

Problem 19

We can convert any weak entity set to a strong entity set by simply adding appropriate attributes. Why, then, do we have weak entity sets?

Check back soon!

00:58
Problem 20

Define the concept of aggregation. Give two examples of where this concept is useful.

KT

Kristen Tumminia

Numerade Educator

Problem 21

Consider the E-R diagram in Figure 6.31, which models an online bookstore.
a. List the entity sets and their primary keys.
b. Suppose the bookstore adds music cassettes and compact disks to its collection. The same music item may be present in cassette or compact disk format, with differing prices. Extend the E-R diagram to model this addition, ignoring the effect on shopping baskets.
c. Now extend the E-R diagram, using generalization, to model the case where a shopping basket may contain any combination of books, music cassettes, or compact disks.

Check back soon!

Problem 22

In Section 6.5.3, we represented a ternary relationship (repeated in Figure 6.29a) using binary relationships, as shown in Figure 6.29b. Consider the alternative shown in Figure 6.29c. Discuss the relative merits of these two alternative representations of a ternary relationship by binary relationships.

Check back soon!

Problem 23

Consider the relation schemas shown in Section 6.9.7, which were generated from the E-R diagram in Figure 6.25. For each schema, specify what foreign-key constraints, if any, should be created.

Check back soon!

Problem 24

Design a generalization-specialization hierarchy for a motor vehicle sales company. The company sells motorcycles, passenger cars, vans, and buses. Justify your placement of attributes at each level of the hierarchy. Explain why they should not be placed at a higher or lower level.

Check back soon!

01:31
Problem 25

Explain the distinction between condition-defined and user-defined constraints. Which of these constraints can the system check automatically? Explain your answer.

KF

Kyle Findley

Numerade Educator

01:33
Problem 26

Explain the distinction between disjoint and overlapping constraints.

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (43)

Lucas Finney

Numerade Educator

00:53
Problem 27

Explain the distinction between total and partial constraints.

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (46)

Farnaz Mohseni

Numerade Educator

Problem 28

Draw the UML equivalents of the E-R diagrams of Figures 6.8c, 6.9, 6.11, 6.12, and 6.20.

Check back soon!

Chapter 6, Database Design and the E-R Model Video Solutions, Database System Concepts | Numerade (2024)

References

Top Articles
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 6101

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.