Multiple choice technology databases

When is a Cartesian product formed?

  1. When a join condition is omitted.

  2. When a join condition is invalid.

  3. All rows in the first table are joined to all rows in the second table.

  4. All of the above.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A Cartesian product occurs when every row from one table is combined with every row from another table. This happens when a join condition is omitted (resulting in a cross join), when a join condition is invalid causing SQL to default to Cartesian behavior, or when explicitly defined. Option D correctly captures all these scenarios.