Schema For Decision Support
Schema For Decision Support
Schema is a logical description of the entire database. It includes the name and description of records of all
record types including all associated data-items and aggregates. Much like a database, a data warehouse also
requires to maintain a schema. A database uses relational model, while a data warehouse uses Star, Snowflake, and
Fact Constellation schema.
Star Schema
The following diagram shows the sales data of a company with respect to the four dimensions, namely
time, item, branch, and location.
Snowflake Schema
Unlike Star schema, the dimensions table in a snowflake schema are normalized. For example, the item
dimension table in star schema is normalized and split into two dimension tables, namely item and supplier
table.
Note − Due to normalization in the Snowflake schema, the redundancy is reduced and therefore, it becomes easy to
maintain and the save storage space.
A fact constellation has multiple fact tables. It is also known as galaxy schema.
The following diagram shows two fact tables, namely sales and shipping.
Schema Definition
Multidimensional schema is defined using Data Mining Query Language (DMQL). The two primitives, cube
definition and dimension definition, can be used for defining the data warehouses and data marts.
The star schema that we have discussed can be defined using Data Mining Query Language (DMQL) as follows −