• edited by
47,431 views
68 68 votes

In an Entity-Relationship (ER) model, suppose $R$ is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate totally in $R$ and that the cardinality of E1 is greater than the cardinality of E2.

Which one of the following is true about $R$?

  1. Every entity in E1 is associated with exactly one entity in E2
  2. Some entity in E1 is associated with more than one entity in E2
  3. Every entity in E2 is associated with exactly one entity in E1
  4. Every entity in E2 is associated with at most one entity in E1

5 Answers

Best answer
82 82 votes

Since it is a many to one relationship from E1 to E2, therefore:

  1. No entity in $E1$ can be related to more than one entity in $E2$. ( hence B is incorrect)
  2. An entity in $E2$ can be related to more than one entity in $E1$.(hence C and D are incorrect).

Option (A) is correct: Every entity in E1 is associated with exactly one entity in E2.

• edited by
46 46 votes

It is given that  "R is a many-to-one relationship from entity set E1 to entity set E2"

E1------N-------R---------1-------E2

Therefore,

Participation of E1:=1

Cardinality of E1:=1

 

Participation of E2:=1

Cardinality of E2:=N

 Therefore, Answer is (A): Every entity in E1 is associated with exactly one entity in E2 because the number of relationships in which an entity of a entity type E1 can participate is equal to 1.


 Note: "Cardinality of a set/Entity set" is a different thing and "Cardinality of an Entity in a relationship" is a different thing.

Cardinality of a set/Entity set: Number of instances/elements in that set.

Cardinality of an Entity in a relationship: Maximum number of relationships in which an entity of a given entity type can participate.

Therefore, the line "cardinality of E1 is greater than the cardinality of E2" just means that the number of instances/entities in E1 is more than the number of instances/entities in E2

• edited by
16 16 votes

Total participation means every entity is involved in relation.It is denoted by double lines.

Many to one relationship from Entity set E1 to Entity set E2 means no entity in E1 can be related to more than one entity of E2 but one entity of E2 can be related to more than one entity of E1. 

So,right answer is option A.

• edited by
13 13 votes
Since total participation of both side And many- one is given then E1 must be merge with Relation.

So Every entity of E1 must be associated with exactly one entity in E2

A is answer
4 4 votes

Given that :-

(1) R is a many-to-one relationship from entity set E1 to entity set E2.

(2) Assume that E1 and E2 participate totally in R

(3) The cardinality of E1 is greater than the cardinality of E2.

-----------------------------------------------------------------------------------------------------

(B)  Some entity in E1 is associated with more than one entity in E2

         therefore many instances of E2 should be mapped with one instance of E1. So, R is one to Many

         Relationship But given that R is Many to One Relationship ===> Option (B) False

(C)  Every entity in E2 is associated with exactly one entity in E1

          according to (3), there are some instances of E1 should not mapped with any instance of E2

           So E1 should be partially participated in R. But given that E1 is participated totally in R ==>

          Option (C) False

(D)  Every entity in E2 is associated with at most one entity in E1

        therefore some of the E2 instances not mapped with E1. So E2 is partially participated But given that E2 is participated totally in R ===> Option (D) False

Answer:
Position:
Show:

Related questions

63 63 votes
11 answers 11 answers
25.1k
25.1k views
gatecse asked Feb 14, 2018
25,087 views
Consider the following four relational schemas. For each schema , all non-trivial functional dependencies are listed, The bolded attributes are the respective primary key...
94 94 votes
8 answers 8 answers
28.8k
28.8k views
gatecse asked Feb 14, 2018
28,758 views
Consider the relations $r(A, B)$ and $s(B, C)$, where $s.B$ is a primary key and $r.B$ is a foreign key referencing $s.B$. Consider the query$Q: r \bowtie (\sigma_{B<5} (...
51 51 votes
9 answers 9 answers
26.2k
26.2k views
gatecse asked Feb 14, 2018
26,163 views
Consider the following solution to the producer-consumer synchronization problem. The shared buffer size is $N$. Three semaphores $empty$, $full$ and $mutex$ are defined ...
43 43 votes
4 answers 4 answers
24.8k
24.8k views
gatecse asked Feb 14, 2018
24,823 views
In a system, there are three types of resources: $E, F$ and $G$. Four processes $P_0$, $P_1$, $P_2$ and $P_3$ execute concurrently. At the outset, the processes have decl...