Let E1 and E2 be two entities in an E/R diagram with simple single-valued attributes. R1 and R2 are two relationships between E1 and E2, where R1 is one-to-many and R2 is many-to-many. R1 and R2 do not have any attributes of their own. What is the minimum number of tables required to represent this situation in the relational model?
Let E1 and E2 be two entities in an E/R diagram with simple single-valued attributes. R1 and R2 are two relationships between E1 and E2, where R1 is one-to-many and R2 is many-to-many. R1 and R2 do not have any attributes of their own. What is the minimum number of tables required to represent this situation in the relational model? Correct Answer 3
The correct answer is option 1.
Concept:
ER Diagram stands for Entity Relationship Diagram, also known as ERD is a diagram that displays the relationship of entity sets stored in a database. In other words, ER diagrams help to explain the logical structure of databases. ER diagrams are created based on three basic concepts: entities, attributes and relationships.
Note:
Minimum number of tables between two entities. Suppose R is relation between two entities E1 and E2 with some cardinality ratio like,
cardinality ratio one to one:
2 tables,
- E1R, E2 or
- E1, E2R
cardinality ratio one to many:
2 tables,
- E1, E2R
cardinality ratio many to one:
2 tables,
- E1R, E2
cardinality ratio many to many:
3 tables,
- E1, E2, R
Given data,
[ alt="F1 Shraddha Harshita 21.2.2022 D5" src="//storage.googleapis.com/tb-img/production/22/02/F1_Shraddha_Harshita_21.2.2022_D5.png" style="width: 449px; height: 278px;">
Only three table are requried,
- E2 R1
- E1
- R2
Hence the correct answer is 3.