DATA-MANAGEMENT-FOUNDATIONS practice question 7 of 15

What is the second step in the implement relationships stage of database design?

Full set: 60 questions

Domain Relational Database Fundamentals

Answer options
A: Implement weak entities
B: Implement one-one relationships Correct answer
C: Implement subtype entities
D: Specify cascade
Correct Answer:
B. Implement one-one relationships
Explanation

The process of implementing relationships from an entity-relationship diagram (ERD) into a relational schema follows a logical sequence, typically progressing from simpler or more fundamental structures to more complex ones. While the unstated first step is often implementing the most common one-to-many (1:M) relationships, the second step is to implement one-to-one (1:1) relationships. Some methodologies map weak entities first; even in that case, the mapping of 1:1 relationships is the immediate subsequent step in the sequence of implementing relationship types. This structured approach ensures that dependencies are handled correctly before moving to more complex structures like subtypes.

Why Incorrect

A. Implement weak entities: In some methodologies, mapping weak entities is the first step in the relationship implementation stage, not the second.
C. Implement subtype entities: Implementing supertype/subtype hierarchies is a more advanced step, typically performed after all basic binary relationships (1:1, 1:M, M:N) have been established.
D. Specify cascade: This is a referential integrity action (e.g., ON DELETE CASCADE) applied to a foreign key constraint. It is a property of an implemented relationship, not a step in the sequence of which relationship type to implement. ---

References

1. Elmasri, R., & Navathe, S. B. (2017). Fundamentals of database systems (7th ed.). Pearson. In Chapter 9, Section 9.1, the ER-to-Relational mapping algorithm is presented. After mapping regular entities (Step 1) and weak entities (Step 2), the next step is "Step 3: Mapping of Binary 1:1 Relationship Types." This places the implementation of 1:1 relationships as the second step in the relationship mapping process.

2. Kroenke, D. M., & Auer, D. J. (2017). Database concepts (8th ed.). Pearson. Chapter 5, "Database Design," outlines the transformation from data models to database designs. The process involves creating tables and then representing relationships by placing foreign keys, addressing 1:1 and 1:N relationships before moving to more complex N:M relationships, implying a sequence based on complexity where 1:1 follows the foundational 1:N.

3. Silberschatz, A., Korth, H. F., & Sudarshan, S. (2020). Database system concepts (7th ed.). McGraw-Hill. Chapter 7, "Reduction to Relational Schemas," describes the methodology for converting an E-R diagram. The mapping of binary relationship sets, such as 1:1, is a core step that follows the initial creation of schemas for entity sets.

Scroll to Top