Skip to main contentSkip to solution

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

✅ Correct Option: 4

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 =3+4=7= 3 + 4 = 7

Cardinality =5×6=30= 5 \times 6 = 30

Result: degree =7= \boxed{7} and cardinality =30= \boxed{30}


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.

Keyboard Shortcuts

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