Bird
0
0

What is the main difference between a LEFT JOIN and a RIGHT JOIN in SQL?

easy📝 Conceptual Q1 of 15
SQL - LEFT and RIGHT JOIN
What is the main difference between a LEFT JOIN and a RIGHT JOIN in SQL?
ARIGHT JOIN returns only matching rows from both tables.
BRIGHT JOIN returns all rows from the left table and matching rows from the right table.
CLEFT JOIN returns only matching rows from both tables.
DLEFT JOIN returns all rows from the left table and matching rows from the right table.
Step-by-Step Solution
Solution:
  1. Step 1: Understand LEFT JOIN behavior

    LEFT JOIN returns all rows from the left table and matching rows from the right table. If no match, right table columns are NULL.
  2. Step 2: Compare with RIGHT JOIN behavior

    RIGHT JOIN returns all rows from the right table and matching rows from the left table. The difference is which table's rows are fully kept.
  3. Final Answer:

    LEFT JOIN returns all rows from the left table and matching rows from the right table. -> Option D
  4. Quick Check:

    LEFT JOIN behavior = A [OK]
Quick Trick: LEFT JOIN keeps all left rows; RIGHT JOIN keeps all right rows [OK]
Common Mistakes:
MISTAKES
  • Confusing which table is preserved in LEFT vs RIGHT JOIN
  • Thinking both JOINs return only matching rows
  • Assuming RIGHT JOIN keeps left table rows

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes