What are some scenarios where you would use a hybrid schema in dimensional modeling?
Dimensional modeling is a technique for designing data warehouses that organizes data into facts and dimensions. Facts are numerical measures of business events, such as sales or orders. Dimensions are descriptive attributes that provide context for the facts, such as product, customer, or date. A schema is a logical structure that defines how the facts and dimensions are related and stored in a database.
There are three common types of schemas in dimensional modeling: star, snowflake, and hybrid. A star schema has a single fact table that connects to multiple dimension tables, each of which has a single level of granularity. A snowflake schema has a fact table that connects to multiple dimension tables, some of which have multiple levels of granularity and are normalized into sub-dimension tables. A hybrid schema combines elements of both star and snowflake schemas, depending on the business requirements and the data characteristics.