Skip to main contentSkip to solution

Which of the following operation combines tuples from two relations resulting in all pairs of rows from the two input relations, regardless of whether or not they have the same values on common attributes?

Solution

✅ Correct Option: 2

The Cartesian product (cross product) pairs every tuple of the first relation with every tuple of the second. It does not check any condition on common attributes. If RR has mm rows and SS has nn rows, the result has m×nm \times n rows.


Join: a join keeps only the pairs that satisfy a condition, such as equal values on common attributes. It is a Cartesian product followed by a selection.

Union and Intersection: these work on two relations with the same attributes and combine or compare their rows. They do not form row pairs.

Keyboard Shortcuts

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