Skip to main contentSkip to solution

The degree of the resultant relation in the Cartesian product is calculated as:

Solution

✅ Correct Option: 4

The degree of a relation is its number of attributes (columns). In a Cartesian product, every tuple of one table is joined with every tuple of the other, so each resulting row contains all columns of both tables. The degree is therefore the sum of the degrees of the two tables.

Degree(R1×R2)=Degree(R1)+Degree(R2)\text{Degree}(R_1 \times R_2) = \text{Degree}(R_1) + \text{Degree}(R_2)


Option 3: the product applies to the cardinality (number of rows), not the degree.

Memory trick: columns add, rows multiply. For example, a 3-column, 4-row table and a 2-column, 5-row table give 3+2=53 + 2 = 5 columns and 4×5=204 \times 5 = 20 rows.

Keyboard Shortcuts

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