Bird
0
0

What is the primary effect of using a LEFT JOIN instead of an INNER JOIN in SQL?

easy📝 Conceptual Q1 of 15
SQL - LEFT and RIGHT JOIN
What is the primary effect of using a LEFT JOIN instead of an INNER JOIN in SQL?
AIt returns all rows from the left table, including those without matching rows in the right table.
BIt returns only rows that have matching values in both tables.
CIt returns all rows from the right table, including those without matches in the left table.
DIt filters out rows from the left table that have no matches in the right table.
Step-by-Step Solution
Solution:
  1. Step 1: Understand JOIN types

    INNER JOIN returns only matching rows from both tables.
  2. Step 2: LEFT JOIN behavior

    LEFT JOIN returns all rows from the left table, and NULLs for unmatched right table rows.
  3. Final Answer:

    It returns all rows from the left table, including those without matching rows in the right table. -> Option A
  4. Quick Check:

    LEFT JOIN preserves all left rows [OK]
Quick Trick: LEFT JOIN keeps all left table rows, unmatched get NULLs [OK]
Common Mistakes:
MISTAKES
  • Confusing LEFT JOIN with INNER JOIN
  • Assuming RIGHT JOIN returns left table rows
  • Thinking LEFT JOIN filters unmatched rows

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes