Skip to main contentSkip to solution

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 3×2=63 \times 2 = 6 tuples, each with 5 values. Pairing (1,2,3) with S's tuple (8,6) gives (1,2,3,8,6).

R tuplewith (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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question