Bird
0
0

If table A has 3 rows and table B has 4 rows, how many rows will the result have after a CROSS JOIN of A and B?

easy📝 Conceptual Q2 of 15
SQL - Advanced Joins
If table A has 3 rows and table B has 4 rows, how many rows will the result have after a CROSS JOIN of A and B?
A7 rows
B12 rows
C1 row
D4 rows
Step-by-Step Solution
Solution:
  1. Step 1: Calculate rows in each table

    Table A has 3 rows, Table B has 4 rows.
  2. Step 2: Multiply rows for CROSS JOIN

    CROSS JOIN returns the Cartesian product, so total rows = 3 * 4 = 12.
  3. Final Answer:

    12 rows -> Option B
  4. Quick Check:

    Rows after CROSS JOIN = 3 * 4 = 12 [OK]
Quick Trick: Multiply row counts of both tables for CROSS JOIN result [OK]
Common Mistakes:
MISTAKES
  • Adding row counts instead of multiplying
  • Confusing with INNER JOIN row count
  • Assuming result equals smaller table row count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes