in Databases
8,790 views
15 votes
15 votes

How many minimum relations required for given ER diagram ?

in Databases
8.8k views

4 Comments

@Satbir
I have a few questions.
1>while converting for ER-model to relational model foreign keys can only point to candidate keys.?
2>if we have a table X(A,B) where A and B are the attributes and A and B form the compound keys,then  if we have a table Y(P,Q,R) where R is the foreign key of Y  we can have (PQ ) as the foreign key in Y which points to the compund key (AB).?

3>foreign keys cannot point to non-key attributes.right?

Please answer.

 

0
0

foreign keys point to primary keys , not candidate keys.

A candidate key is a key which has the capability to become a primary key, but there is only 1 primary key in a table.

https://stackoverflow.com/questions/42268886/how-to-have-a-foreign-key-pointing-to-two-primary-keys

1
1

https://csedoubts.gateoverflow.in/16478/self-doubt-dbms-er-diagrams

That mean here RELATIONAL MODEL no.1  is correct .right?

0
0

13 Answers

9 votes
9 votes

hope  this helps...

1 comment

why we are combining $E2-R3-E3$ ?

Since E3 is not totally participating combining them will produce some redundancies
0
0
3 votes
3 votes
answer must be 5 tables
3 votes
3 votes
Ans is 5

{R1} {E1R4E2} {E5R6} {R2} {E3R3R5E2}
2 votes
2 votes

Total 8 tables are required

Let (EntityName,NumberOf Table)

(E1,1),(E2,3),(E3,1),(E4,1),(E5,2) 

E2 has 3 tables because in suppose we have 

Recursive Relationship -types of relationships in er diagram

So 3 tables required for E2 and E5 is weak entity so 2 tables required

weak entity type(entity and its types)

total = 1+3+1+1+2 = 8 tables 

Reference :-http://www.edugrabs.com/entity-and-its-types/

4 Comments

okay . got it
0
0
But where is it given that R4 is 1:1?
0
0
check arrows.

if u didn't get then i ll suggest to go through basics once of ER
0
0