Two relations, SPORTS and DANCE, have degrees 3 and 4, respectively. The number of rows in these relations are 5 and 6, respectively. Applying the Cartesian product to the two relations, results in a relation of degrees _____ and cardinality _____ respectively.
Two relations, SPORTS and DANCE, have degrees 3 and 4, respectively. The number of rows in these relations are 5 and 6, respectively. Applying the Cartesian product to the two relations, results in a relation of degrees _____ and cardinality _____ respectively.
Solution
The Cartesian product combines every row of one relation with every row of the other, so the attributes (columns) add up and the rows multiply.
Degree
Cardinality
Result: degree and cardinality
Options 1 and 3: degree is the sum of columns, not the product, so 12 is wrong.
Options 2 and 3: cardinality is the product of rows, not the sum, so 11 is wrong.
Memory trick: degree (columns) adds, cardinality (rows) multiplies.
Related questions:
2026: 21 May Shift 1
2025: 13 May Shift 2
2025: 22 May Shift 1
2026: 11 May Shift 2