Bird
0
0

What is the primary effect of using an INNER JOIN between two tables in PostgreSQL?

easy📝 Conceptual Q1 of 15
PostgreSQL - Joins in PostgreSQL
What is the primary effect of using an INNER JOIN between two tables in PostgreSQL?
AIt returns all rows from the second table regardless of matches.
BIt returns all rows from the first table regardless of matches.
CIt returns only rows with matching values in both tables.
DIt returns all rows from both tables, including unmatched rows.
Step-by-Step Solution
Solution:
  1. Step 1: Understand INNER JOIN behavior

    INNER JOIN returns rows where the join condition matches in both tables.
  2. Step 2: Compare options

    Only It returns only rows with matching values in both tables. correctly states that only matching rows are returned.
  3. Final Answer:

    It returns only rows with matching values in both tables. -> Option C
  4. Quick Check:

    INNER JOIN filters to matching rows only. [OK]
Quick Trick: INNER JOIN returns only matching rows from both tables. [OK]
Common Mistakes:
  • Confusing INNER JOIN with LEFT or RIGHT JOIN
  • Assuming unmatched rows are included

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes