MODELS
ENTITY-RELATIONSHIP MODELING (ER):
Entity-relationship modeling is a logical design technique that seeks to eliminate data
redundancy. ER models show the relationship between data. These models are difficult to read
and understand unless trained in the model methodology. Also, it is difficult to understand the
business from viewing the ER model.
DIMENSIONAL MODELING:
Dimensional modeling is the name of a logical design technique used for data warehouses.
Every dimensional model is composed of a “fact” table and a set of “dimension” tables.
Conformed fact and dimension elements are elements that conform to the enterprises
centralized metadata database. For example, “store_id” would have a common definition and
attributes across the enterprise and as such would have the same information across dimension
tables. See the appendix for an example of a Dimensional Model
Data Warehouse Dimensional Modeling (Types of Schemas)
There are four types of schemas are available in data warehouse. Out of which the star schema is
mostly used in the data warehouse designs. The second mostly used data warehouse schema is
snow flake schema. We will see about these schemas in detail.
Star Schema:
A star schema is the one in which a central fact table is surrounded by denormalized dimensional
tables. A star schema can be simple or complex. A simple star schema consists of one fact table
where as a complex star schema have more than one fact table.
Snow Flake Schema:
A snow flake schema is an enhancement of star schema by adding additional dimensions. Snow
flake schemas are useful when there are low cardinality attributes in the dimensions.
Galaxy Schema:
Galaxy schema contains many fact tables with some common dimensions (conformed dimensions).
This schema is a combination of many data marts.
Fact Constellation Schema:
The dimensions in this schema are segregated into independent dimensions based on the levels
of hierarchy. For example, if geography has five levels of hierarchy like tertiary, region, country, state
and city; constellation schema would have five dimensions instead of one.