edited by
402 views
1 votes
1 votes

Consider a $m:n$ relationship and an ER model using it. Which of the following is/are correct for converting this relationship to a relational instance? (Mark all the appropriate options)

  1. If participation of both the entities are mandatory then we only need $2$ relations
  2. If participation of both the entities are mandatory then we need $3$ relations
  3. If participation of only one entity is mandatory then we only need $2$ relations
  4. If participation of both the entities are optional then we need $3$ relations
edited by

2 Answers

Best answer
4 votes
4 votes

We need to be certain that if we store an identifier for one entity in a relation representing another entity, that the identifier never has a null value.

For $m:n$ relationship irrespective of the participation we need to have $2$ separate relations for the $2$ entities and a separate relation for their relationship having the keys of both the entities.

So, options B and D only are correct.

Reference: https://gateoverflow.in/?qa=blob&qa_blobid=9717024449754071080

selected by
0 votes
0 votes

m:n 

  1. both end partial participation we need 3 table.
  2. one end partial participation  : 2 table (merge at the side of total participation).
  3. Both total participation : 1 table enough. so otion C and D are correct only. in these cases you may get partial dependency but as in question nothing is mentioned which form of normalization it should satisfy so by default we will take 1 NF and correct answer should be C and D.
Answer:

Related questions