Bird
0
0

Why does an INNER JOIN exclude rows that do not have matching keys in both tables?

easy📝 Conceptual Q10 of 15
SQL - INNER JOIN
Why does an INNER JOIN exclude rows that do not have matching keys in both tables?
ABecause INNER JOIN deletes unmatched rows
BBecause INNER JOIN returns all rows from the first table
CBecause INNER JOIN returns only rows where join condition is true
DBecause INNER JOIN returns all rows from the second table
Step-by-Step Solution
Solution:
  1. Step 1: Understand INNER JOIN filtering

    INNER JOIN returns only rows where the join condition matches in both tables.
  2. Step 2: Analyze why unmatched rows are excluded

    Rows without matching keys fail the join condition, so they are excluded from the result.
  3. Final Answer:

    Because INNER JOIN returns only rows where join condition is true -> Option C
  4. Quick Check:

    INNER JOIN filters unmatched rows by join condition [OK]
Quick Trick: INNER JOIN keeps only rows matching join condition [OK]
Common Mistakes:
MISTAKES
  • Thinking INNER JOIN returns all rows from one table
  • Assuming unmatched rows are deleted from tables
  • Confusing INNER JOIN with OUTER JOIN behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes