__________ results in all pairs of rows from the two input relations, regardless of whether or not they have the same values on common attributes.
__________ results 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 pairs every row of the first relation with every row of the second, without checking any condition on common attributes. If the relations have and rows, the result has rows.
Join: a join keeps only the pairs that satisfy a condition, such as equal values on common attributes (natural join). It is a Cartesian product followed by a selection.
Union and Minus: these combine or subtract rows of two union-compatible relations. They do not form row pairs.
Related questions:
2025: 13 May Shift 2
2025: 13 May Shift 2
2026: 19 May Shift 1
2025: 21 May Shift 1