1 votes 1 votes Given two union compatible relations R1(A,B) and R2(C,D), what is the result of the operation R1 ⋈ (A=C∨B=D)R2? R1∪R2 R1×R2 R1–R2 R1∩R2 Databases relational-algebra databases relations joins + – iarnav asked Nov 27, 2017 • edited Nov 27, 2017 by Rupendra Choudhary iarnav 1.2k views answer comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments iarnav commented Nov 27, 2017 reply Follow Share Thanks for answer but what is the correct option in case of OR OPERATOR? 0 votes 0 votes iarnav commented Nov 27, 2017 reply Follow Share @Rupendra Choudhary may you please give any small example in this question(OR) and the other; gate question(AND)? i am not getting and have to by heart it 0 votes 0 votes Rupendra Choudhary commented Nov 27, 2017 reply Follow Share A B 1 7 4 5 0 3 R2 (C,D) C D 4 5 9 3 R1∩R2 = (4,5) R1∪R2 =( (1,7),(4,5),(0,3),(9,3)) R1 ⋈R1.B=R2.C R2 => No tuple R1 ⋈R1.B=R2.D R2 => ((4,5,4),(0,3,9)) R1 ⋈R1.A=R2.C R2 => (4,5,5) R1 ⋈R1.A=R2.D R2 => No Tuple R1 ⋈R1.A=R2.C AND R1.B=R2.D R2 => (4,5) R1 ⋈R1.A=R2.C OR R1.B=R2.D R2 => check manually like for (1,7) if R2 has either some 1 in column name C or some 7 in column name D then 1,7 would be one tuple for o/p so apply this same concept or in other way apply R1*R2 and then our theta condition here is R1.A=R2.C OR R1.B=R2.D , so see if this condition is satisfied , then only select tuple for o/p . so (4,5,4,5), (0,3,9,3) those would be the o/p tuples.. 1 votes 1 votes Please log in or register to add a comment.