What is the degree of the resulting table when performing a Cartesian product of two tables with degrees 3 and 4?
What is the degree of the resulting table when performing a Cartesian product of two tables with degrees 3 and 4?
Solution
✅ Correct Option: 3
The degree of a table is its number of columns (attributes). A Cartesian product combines every row of one table with every row of the other, so each resulting row carries all the columns of both tables.
Degree of result = degree of first table + degree of second table
Option 4: 12 is the product , which is wrong for degree. It would be the cardinality (number of rows) if the tables had 3 and 4 rows.
Remember: degrees add, cardinalities multiply.
Related questions:
2026: 29 May Shift 1
2025: 15 May Shift 2
2026: 23 May Shift 2