Bird
0
0

Which SQL JOIN type is typically used to connect fact and dimension tables in a star schema?

easy📝 Syntax Q12 of 15
SQL - Database Design and Normalization
Which SQL JOIN type is typically used to connect fact and dimension tables in a star schema?
AINNER JOIN
BLEFT JOIN
CFULL OUTER JOIN
DCROSS JOIN
Step-by-Step Solution
Solution:
  1. Step 1: Understand fact-dimension relationship

    Fact tables usually have matching keys in dimension tables.
  2. Step 2: Choose JOIN type for matching rows

    INNER JOIN returns only matching rows, ideal for star schema queries.
  3. Final Answer:

    INNER JOIN -> Option A
  4. Quick Check:

    Fact and dimension use INNER JOIN [OK]
Quick Trick: Use INNER JOIN to link matching keys [OK]
Common Mistakes:
  • Using CROSS JOIN which multiplies rows
  • Using FULL OUTER JOIN causing unnecessary nulls
  • Using LEFT JOIN when INNER JOIN suffices

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes