Consider a relation R(A, B, C) with tuple {(1,2,3), (2,3,4), (3,4,5)} and another relation S(C,D) with tuple {(8,6),(9,7)}. Which of the following will be present in the Cartesian product of 'R' and 'S'?
Consider a relation R(A, B, C) with tuple {(1,2,3), (2,3,4), (3,4,5)} and another relation S(C,D) with tuple {(8,6),(9,7)}. Which of the following will be present in the Cartesian product of 'R' and 'S'?
Solution
✅ Correct Option: 1
Each tuple of R is joined with each tuple of S, so the product has tuples, each with 5 values. Pairing (1,2,3) with S's tuple (8,6) gives (1,2,3,8,6).
| R tuple | with (8,6) | with (9,7) |
|---|---|---|
| (1,2,3) | (1,2,3,8,6) | (1,2,3,9,7) |
| (2,3,4) | (2,3,4,8,6) | (2,3,4,9,7) |
| (3,4,5) | (3,4,5,8,6) | (3,4,5,9,7) |
Options 2, 3 and 4: the last two values (6,7), (8,9) and (6,7) are not tuples of S. They mix values from different S tuples, so they cannot appear in the product.
Related questions:
2025: 21 May Shift 1
2026: 29 May Shift 1
2025: 14 May Shift 1
2026: 23 May Shift 2
