A star schema has what type of relationship between a dimension and fact table?

  1. Many-to-many

  2. One-to-one

  3. One-to-many

  4. All of the above.


Correct Option: C

AI Explanation

To answer this question, you need to understand the concept of a star schema.

A star schema is a type of data model used in data warehousing. It consists of a fact table that is connected to one or more dimension tables. The fact table contains the quantitative data that you want to analyze, while the dimension tables contain descriptive attributes.

In a star schema, the relationship between a dimension table and a fact table is typically a one-to-many relationship. This means that for each record in the fact table, there can be multiple related records in the dimension table.

Option A) Many-to-many - This option is incorrect because a star schema does not typically have a many-to-many relationship between dimension and fact tables. A many-to-many relationship would require a bridge table to connect the two tables.

Option B) One-to-one - This option is incorrect because a star schema does not typically have a one-to-one relationship between dimension and fact tables. A one-to-one relationship would mean that each record in the fact table corresponds to only one record in the dimension table.

Option C) One-to-many - This option is correct because a star schema typically has a one-to-many relationship between dimension and fact tables. Each record in the fact table can have multiple related records in the dimension table.

Option D) All of the above - This option is incorrect because a star schema does not have a many-to-many or one-to-one relationship between dimension and fact tables. The correct answer is option C, which states that the relationship is one-to-many.

Therefore, the correct answer is C) One-to-many. This option is correct because a star schema typically has a one-to-many relationship between a dimension and fact table.

Find more quizzes: