Skip to main contentSkip to solution

Consider the following two tables 'A' and 'B'.

A

NameRollNoMarks
amit110
vinitNULL20
punit337

B

RollNoMobileNoAddress
191Kushinagar
292Murthal
393Churu
498Deoria

The Cartesian Product of table 'A' and table 'B' shows ________ rows as NULL values.

Solution

✅ Correct Option: 2

The Cartesian product pairs every row of A with every row of B, so it has 3×4=123 \times 4 = 12 rows in total.

Only the row (vinit, NULL, 20) in A contains a NULL. It is paired with each of the 4 rows of B, so the NULL RollNo appears in 1×4=41 \times 4 = \boxed{4} rows of the result.


Option 1: 12 is the total number of rows in the product, not the number of rows containing NULL.

Option 4: there is one NULL in table A, but it is repeated once for every row of B.

Keyboard Shortcuts

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