Skip to main contentSkip to solution

Cartesian product operation combines tuples from two relations.. The cardinality of the resulting relation is calculated as ____________________

Solution

✅ Correct Option: 4

The Cartesian product pairs every tuple of the first relation with every tuple of the second. If relation RR has mm tuples and SS has nn tuples, the result has m×nm \times n tuples.

∣R×S∣=∣R∣×∣S∣=m×n\lvert R \times S \rvert = \lvert R \rvert \times \lvert S \rvert = \boxed{m \times n}

For example, 3 tuples and 4 tuples give 3×4=123 \times 4 = 12 tuples.


Option 2: the sum applies to the degree (number of attributes) of the result, not its cardinality. Degree of R×SR \times S is degree(R)+degree(S)\text{degree}(R) + \text{degree}(S).

Keyboard Shortcuts

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