HCU PHD CS MAY 2015
May 17, 2024
Question 3744 – Compiler-Design
May 17, 2024
HCU PHD CS MAY 2015
May 17, 2024
Question 3744 – Compiler-Design
May 17, 2024

GATE 2008

Question 82

Consider the following ER diagram

The minimum number of tables needed to represent M, N, P, R1, R2 is

A
2
B
3
C
4
D
5
Question 82 Explanation: 
➝ M, P are entities so they require individual tables.
➝ Here N is a Weak entity, but it need to modify the primary key of P such as P1
M = {M1, M2, M3, P1}
P = {P1, P2}
N = {N1, N2, P1}
➝ Relationship set has its own attribute, then no need to create a separate table.
➝ Finally we require 3 minimum tables to represent M, P, N, R1, R2.
Correct Answer: B
Question 82 Explanation: 
➝ M, P are entities so they require individual tables.
➝ Here N is a Weak entity, but it need to modify the primary key of P such as P1
M = {M1, M2, M3, P1}
P = {P1, P2}
N = {N1, N2, P1}
➝ Relationship set has its own attribute, then no need to create a separate table.
➝ Finally we require 3 minimum tables to represent M, P, N, R1, R2.

Leave a Reply

Your email address will not be published. Required fields are marked *