Question:medium

State True or False:
If table A has 6 rows and 3 columns,
and table B has 5 rows and 2 columns,
the Cartesian product of A and B will have 30 rows and 5 columns.

Show Hint

Cartesian product rows = rows(A) x rows(B),
columns = columns(A) + columns(B).
Updated On: Jan 14, 2026
Show Solution

Solution and Explanation

A Cartesian product of two tables joins each row from the first table with every row from the second. The resulting row count is the product of the individual table row counts. For example, 6 rows in A multiplied by 5 rows in B yields 30 rows. The column count of the resultant table is the sum of columns from both tables: 3 columns in A plus 2 columns in B results in 5 columns. Therefore, the statement is True.
Was this answer helpful?
0