1,848 views
1 votes
1 votes

The relationship between 2 entity A and B is 1:1 and the relationship is optional at the end . Only 50% of B entities are related To A .

Now Consider mapping these entity types into relations 

Select the best statement :

A ) A and B should be seperate and foreign key should be in A relation 

b) A and B should be seperate and foreign key should be in B relation 

c)  A and B should be seperate and foreign key should be in A and B both relation 

d) None of these 

Verify please

2 Answers

1 votes
1 votes
d) none of these

because we are not sure about A's participation may be the relation will merged into A or B

it cant be decided
0 votes
0 votes
Given relationship as 1:1 and 50% of B entities are related to A. A is related to those 50% only in 1:1 cardinality . So there must be a way to map the relation between A nd B . Bring an attribute from B to A so that A should relate to those 50% . Option A is correct.

Why option B is not best because what if B has foreign key ? there will be 50% of wastage by making null values. That A is not related to B

Related questions

0 votes
0 votes
0 answers
1
Ashutosh_17 asked Apr 13, 2023
433 views
Consider the following relation (capitalized letters are attributes and lower letters are values).X:From the given FDs find the dependencies that seems to apply on X and ...
1 votes
1 votes
1 answer
3
aditi19 asked Jun 7, 2019
1,885 views
How to represent referential integrity constraint in ER model?pls explain with diagram
1 votes
1 votes
0 answers
4
bts1jimin asked Aug 30, 2018
1,324 views