QuestionQ128

VerifiedData Modeling with Databricks SQL

A company uses a star schema to analyze sales information. The sales fact table stores transactions, and the dimension tables include products, stores, and dates.

How do primary and foreign keys support efficient joins between these tables?

Explanation

Each dimension table has a primary key, and the fact table stores that key as a foreign key. This lets transaction rows join to multiple dimensions—such as product, store, and date—for analytical queries.

Community Discussion

No comments yet. Be the first to start the discussion!