791 views
0 votes
0 votes

What is the minimum number of relations required to represent a one-to-many relationship having total participation on the many side?

Can i have just a single table with all attributes and (A1,B1) as a composite primary key?

2 Answers

1 votes
1 votes
Yes, but only if there is total participation on 1-side too. If many-side is totally participating and 1- side is partially participating, then your composite primary key (A1, B1) will have NULL values in B1 field for some of the entries and violate the condition of primary key’s prime attributes not being NULL. Hence, we require 2 tables to represent the ER model if there’s partial participation on 1-side and total participation on many-side.

On the other hand, if both sides are totally participating, then a single table with (A1, B1) as the primary key will do.
1 votes
1 votes
Here you can get away with just 2 tables. One table will be E1 & R having B1/B2 as foreign key and A1/A2 as primary key , and the other table will have just E2.

Related questions

0 votes
0 votes
0 answers
1
Syeda97 asked Nov 11, 2018
500 views
In case of 1:1 relationships, when can we have a minimum of 1 table?when both the entities have total participationwhen atleast one entity have total participation
1 votes
1 votes
0 answers
3
bts1jimin asked Aug 30, 2018
1,335 views
0 votes
0 votes
2 answers
4
sushmita asked Jan 31, 2017
1,118 views
while converting one to one relationship from ER diagram to RDMS, without total participation on either side, we can represent the relationship using primary- foreign key...