967 views
2 votes
2 votes

What does different types of lines mean here? Provide some ref. if you can

3 Answers

2 votes
2 votes
  • Single Line - No constraint 
  • Double Line - Participation Constraint 
  • Single Line with an Arrow on one end - Key constraint.
  • Double Line with an Arrow on one of the End - Key + Participation Constraint.

As we can see there is

  • 1:1 relationship R1 between A and B.
  • 1:1 relationship R3 between B and C.
  • N:N relationship R2 between A and C.

    Here we can Merge
  • 1) A_R1_B
    OR
  • 2) B_R3_C 

    But not Both At the Same Time.As A and C are not in 1:1 Total Participation.

    So, Minimum Tables Required -  2.
  • 1) A_R1_B  AND C
    OR
  • 2) B_R3_C AND A
edited by
0 votes
0 votes

Double lines indicate total participation of an entity in a relationship set(ref: korth)

Arrow represents one to one relation.

single line represents many to many relation.

0 votes
0 votes
same kind of que was asked in gate check it out...
https://gateoverflow.in/87025/gate2008-83?show=87025#q87025

 here the only difference is that B and A is in one to one relation as well as B and C also, but there is no constrain on A and C so for creating a table we  just need columns of B and A together in one table and col. of the primary key in B and all cols of  C in another table..  so only 2 relation is required... bcz as there is no constrain on A and C no relation is needed for that

So answer is 2 relation required here.. i hope u r cleared..

Related questions

1 votes
1 votes
1 answer
3
ankit_thawal asked Jan 15, 2018
294 views
To detect collision in CSMA/CD.What is the condition?Tt=2*TpOR Tt=Tp
2 votes
2 votes
0 answers
4
ankit_thawal asked Jan 14, 2018
277 views
Can Anyone please post the diagram which describes the relation between P, NP, NPSPACE, NP-Hard, EXPONENTIAL TIME etc.