edited by
499 views
1 votes
1 votes

what will be the key for total participation 1:1 combining tables??? plz give the Candidate keys and foreign keys seperately??

Also what if in 1:1 relation total participation is on both side than what will be key?? Composite key to both tables or key of anyone table will be selected???

edited by

1 Answer

0 votes
0 votes
There will be two tables at the end.

E1RE2 will be combined into one table and E3R2 will be combined into one table.

For the E1RE2 table,primary key will be the primary key of E2 i.e D and there will be no foreign key.

For the table E3R2 there will be two primary keys D and G and D will be the foreign key to the table E1RE2.

For the total participation on both sides, everything will be same except the primary keys.Now table E1RE2 can have two keys D and A.

Related questions

1 votes
1 votes
4 answers
1
1 votes
1 votes
1 answer
2
0 votes
0 votes
0 answers
3
1 votes
1 votes
0 answers
4