2 votes 2 votes .WHAT IS TRIPLES???? Databases databases + – resuscitate asked Nov 3, 2015 • retagged Aug 5, 2017 by Arjun resuscitate 1.3k views answer comment Share Follow See 1 comment See all 1 1 comment reply resuscitate commented Nov 3, 2015 reply Follow Share not just answer,describe it.. 0 votes 0 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes Max no of triples will be 1000 As, here A to B many to one relationship So, each B will form 1 triples,So max 1000 triple Now A to C also many to one relation, C will also form 10 triples But max.no of triples of entities will be 1000 srestha answered Dec 2, 2015 • selected Aug 11, 2017 by Bikram srestha comment Share Follow See all 2 Comments See all 2 2 Comments reply shreshtha5 commented Dec 3, 2015 reply Follow Share "here A to B many to one relationship So, each B will form 1 triples" i am not getting this..can u plz explain a bit more... 0 votes 0 votes shraddha_gami commented Feb 8, 2017 reply Follow Share I think something like this A to B is many to one that means in every relationship only one entity of B can participate and many entity of A is participate in one relationship. So, 1000 triples Same for A to C. So, 10 triples B and C is one to one. So, only 10 triples are possible. Maximum no of triples is 1000 But this answer is conflicting this answer https://gateoverflow.in/69284/er-diagram :( 0 votes 0 votes Please log in or register to add a comment.
6 votes 6 votes Triples is of the form (a,b,c) where a∈A,b∈B and c∈C A has 100 enteies B has 1000 and C has 10.. in relation R participation of A is many while of B and C is one Relation between B to C us one one so no of BC pairs=10 Now each A can combine with 10 BC pairs resulting inro 100*10 =1000 triples Pooja Palod answered Nov 3, 2015 Pooja Palod comment Share Follow See all 19 Comments See all 19 19 Comments reply Tendua commented Nov 3, 2015 reply Follow Share how can u say that it the participation of A will be many. The solution is right . Arrow shows that its one to one but how A is many 0 votes 0 votes resuscitate commented Nov 3, 2015 reply Follow Share @pooja ,what is the significance of arrow.what does arrow mean?? 0 votes 0 votes dhairya commented Jun 26, 2016 reply Follow Share How come no of BC pair =10...?? 0 votes 0 votes Sushant Gokhale commented Sep 28, 2016 reply Follow Share @Pooja. No of BC pairs=10 is correct. But the relationship is many-one from A to BC. So, max tuples=100, right? 0 votes 0 votes shraddha_gami commented Feb 8, 2017 i edited by shraddha_gami Feb 8, 2017 reply Follow Share @sushant A to B is many to one that means in every relationship only one entity of B can participate and many entity of A is participate in one relationship. Same for A to C. B and C is one to one. So, only 10 triples are possible. Now 100 entities of A map with each entity So, 100*10 Maximum no of triples is 1000 0 votes 0 votes Sushant Gokhale commented Feb 8, 2017 reply Follow Share @Shraddha. See this: Lets the tuples be in table A, B and C be like this: A B C 1 1 1 2 2 2 3 3 4 5 6 Now, A -> B and hence, max no of tuples will be when A-B is one-one. Hence, max tuples in A-B = 3 Similarly, max tuples in A-C will be 3. Now, if we take natural join of AB and AC, then you will get 3 tuples. Hence, for the question under consideration will have max of 100 tuples since A will form primary key of R 0 votes 0 votes shraddha_gami commented Feb 8, 2017 i edited by shraddha_gami Feb 8, 2017 reply Follow Share @sushant Relationship is many to one Like this..... B to C is one to one so we get 10 triples And A map with every 10 triples So, answer is 1000 0 votes 0 votes bad_engineer commented Feb 8, 2017 reply Follow Share what I have learn from these type of question is that there are two meaning Interpretation 1) A->B and A->C Here the triples will be 50 Interpretation 2) AB->C and AC->B Here for every A there can be atmost min(B,C) tuples So 100 * 10 =1000 Since the question has asked maximum it should be 1000 0 votes 0 votes shraddha_gami commented Feb 8, 2017 reply Follow Share @bad_engineer Yeah that's correct I represent this by diagram....both concept are same 1 votes 1 votes Ojas Srivastava commented Feb 8, 2017 reply Follow Share @bad_engineer how is it 50 by first representation 0 votes 0 votes Sushant Gokhale commented Feb 8, 2017 reply Follow Share @SHraddha. Got it. Thanks 0 votes 0 votes Sushant Gokhale commented Feb 9, 2017 reply Follow Share @Shraddha @Bad_engineer See this. I was wondering why I am wrong. DIagrams from Korth: Another reference: here So, A -> BC will be the FD for relationship R and hence, max no of tuples = 100 @Shraddha. What you took was many-many relationship. 0 votes 0 votes shraddha_gami commented Feb 9, 2017 i edited by shraddha_gami Feb 9, 2017 reply Follow Share @sushant Then how answer is 1000 Before this I was thinking like.. A to B is many to one that means in every relationship only one entity of B can participate and many entity of A is participate in one relationship. So, 1000 triples Same for A to C. So, 10 triples B and C is one to one. So, only 10 triples are possible. Maximum no of triples is 1000 And it is wrong bcz it represent one to many.... So, I concluded my answer from this https://gateoverflow.in/69284/er-diagram 0 votes 0 votes Sushant Gokhale commented Feb 9, 2017 reply Follow Share @Shraddha. A-B is many-1 and not 1-many. Thats why I showed the definition of many-1 and many-many from Korth. What you took is many-1 and 1-many, both. 0 votes 0 votes shraddha_gami commented Feb 9, 2017 reply Follow Share Yeah I know that if we go for many to one then answer is 100 But many tests give answer as 1000 0 votes 0 votes Sushant Gokhale commented Feb 9, 2017 reply Follow Share I doubt that 0 votes 0 votes shraddha_gami commented Feb 9, 2017 reply Follow Share https://gateoverflow.in/69284/er-diagram And for this question answer is only 50 right 0 votes 0 votes Sushant Gokhale commented Feb 9, 2017 reply Follow Share Thats what I am saying :) 0 votes 0 votes akb1115 commented Aug 17, 2017 reply Follow Share @Sushant Gokhale Yes, I too think the answer must be 100 only and not 1000. 0 votes 0 votes Please log in or register to add a comment.