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?
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
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 has rows and has rows, the result has 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.
Related questions:
2026: 18 May Shift 2
2025: 15 May Shift 2
2025: 15 May Shift 2
2026: 21 May Shift 1