Database-Management-System
August 26, 2024
ER-Model
August 26, 2024
Database-Management-System
August 26, 2024
ER-Model
August 26, 2024

Database-Management-System

Question 673
Let M and N be two entities in an E-R diagram with simple single value attributes.
R​ 1​ and R​ 2​ are two relationship between M and N, where as
R​ 1​ is one-to-many and R​ 2​ is many-to-many.
The minimum number of tables required to represent M, N, R​ 1​ and R​ 2​ in the relational model are _______.
A
4
B
6
C
7
D
3
Question 673 Explanation: 
R​ 1​ and R​ 2​ two relationships between M and N
R​ 1​ is one to many.
R​ 2​ is many to many.
→ M and N have separate table because they need to store multiple values.
→ R​ 2​ also have separate table by considering Primary keys M and N as foreign keys.
→ R​ 1​ is converted to many side table i.e., N as Primary key and M as Foreign key.
So, totally we need 3 tables to store the value.
Correct Answer: D
Question 673 Explanation: 
R​ 1​ and R​ 2​ two relationships between M and N
R​ 1​ is one to many.
R​ 2​ is many to many.
→ M and N have separate table because they need to store multiple values.
→ R​ 2​ also have separate table by considering Primary keys M and N as foreign keys.
→ R​ 1​ is converted to many side table i.e., N as Primary key and M as Foreign key.
So, totally we need 3 tables to store the value.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!