Skip to content
Official PYQ · 1998

GATE CS 1998 Q1.33 — Relational Model: Relational Algebra

Explain with AI

Given two union compatible relations R1(A,B)R_1(A, B) and R2(C,D)R_2 (C, D), what is the result of the operation R1⋈A=C∧B=DR2R_1 \Join_{ A = C \wedge B = D} R_2?

Choose one option
View worked solution

Answer: D

To find the result of the operation R1⋈A=C∧B=DR2R_1 \Join_{A = C \wedge B = D} R_2, let us analyze the given conditions:

  1. Union Compatibility: Since R1(A,B)R_1(A, B) and R2(C,D)R_2(C, D) are union-compatible, they have the same number of attributes, and the corresponding domains are compatible (i.e., dom(A)=dom(C)\text{dom}(A) = \text{dom}(C) and dom(B)=dom(D)\text{dom}(B) = \text{dom}(D)).
  2. Join Condition: The join condition is A=C∧B=DA = C \wedge B = D. This means we are looking for pairs of tuples (a,b)∈R1(a, b) \in R_1 and (c,d)∈R2(c, d) \in R_2 such that:
    • a=ca = c
    • b=db = d

This condition matches only those tuples that are identical in both relations (i.e., present in both R1R_1 and R2R_2).

Conceptually, finding the set of tuples that exist in both R1R_1 and R2R_2 is equivalent to the set intersection operation:

R1∩R2R_1 \cap R_2

Thus, the operation represents the intersection of the two relations.

Correct Option: D

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Relational Model: Relational Algebra questions