Categories: BI Tutorials

Types of Schema | Star Schema | Snowflake schema

Types of Schema :

In Previous articles i explained about Business Intelligence,Data warehousing,OLAP vs OLTP;In this article I will explain about Database Schema used in business intelligece.Schema is logical description of whole database. Database schema is a skeleton or structure of the database which represents database logically. Same like a database Data warehouse also requires to maintain database schema. Data warehouse schema includes name of database objects with its relationship maintained in diagrammatic format. Database uses relational model where data warehouse uses following Types of Schema :1.Star Schema  2.Snowflake Schema  3.Fact Constellation schema which is also called as Galaxy Schema.

What you will find in this article?

1.What are Types of Schema in BI?

2.About Star Schema

3.About Snowflake Schema

What are Types of Schema in BI?

Star Schema :

In Star schema there is Fact table as a center and all dimension tables surrounded with that  fact table. It is called as Star schema because diagram resembles a star with points radiating from center. Star schema is used in simple data mart or data warehouse. Star schema is designed in such way that it will optimize the querying on large data sets. In Star schema multiple dimension tables joined with only one fact table in de-normalized form.

OBIEE BMM(Business model) Layer always follows star schema.

These all tables are joined in logical manner to meet specific business requirement. Star schemas are used to create report in BI reporting tool. Dimension table contains attributes and fact table contains foreign keys and measurements.

Real Life Example :

In above diagram you will able to see that table named transaction is fact table and all 5 are Dimension tables.

Snowflake Schema :

Snowflake schema is a form of dimensional modeling where dimensions are stored with multiple dimension tables. Snowflake schema is variation over star schema. The schema is diagramed as each fact is surrounded with dimensions; and some dimensions are further related to other dimensions which are branched in snowflake pattern. In snowflake schema multiple dimension tables are organized and joined with fact table. Only difference between star and snowflake schema is dimensions are normalized in snowflake schema.Normalization splits up data in to additional tables.

Real life Example :

In Diagram i shown the snowflake schema where sales table is a fact table and all are dimensions. Store table is further normalized in to different tables name city, state and region.

Snowflake schema is used in application layer of OBIEE.

Granularity :

Granularity in table represents the level of information stored in the table. In BI granularity is very important concept to check the table data. The granularity is high and low .High granularity data contains the data with high information or you can say it as transaction level data is high granularity data. Low granularity means data has low level information only. Fact table always have low granularity mean we need very low level data in fact table.

Following 2 points are important in defining granularity :

1.Determining the dimensions that are to be included

2.Determining location to place hierarchy of each dimension of information.

Real life Example :

Date Dimension Granularity level :

Year,month,quarter,period,week,day.

Normalization :

Database Normalization is organizing non structured data in to structured data. Database normalization is nothing but organizing the tables and columns of the tables in such way that it should reduce the data redundancy and complexity of data and improves the integrity of data.

Database Normalization is nothing but technique of designing the database in structured way to reduce redundancy and improve data integrity.

Database Normalization is used for following Purpose:

  1. To Eliminate the redundant or useless data
  2. To Reduce the complexity of the data
  3. To Ensure the relationship between tables as well as data in the tables
  4. To Ensure data dependencies and data is logically stored.

Hope you like this article on Types of Schema used in data warehousing. If you like this article kindly comment it in comment section.

Amit S

Oracle Consultant with vast experience in Oracle BI and PL/SQL Development. Amiet is the admin head of this website who contributes by preparing tutorials and articles related to database technologies. He is responsible to manage the content and front-end of the website.

Share
Published by
Amit S

Recent Posts

What is Root Cause Analysis (RCA) With real examples

In my previous article I have given details about application support engineer day to day…

4 weeks ago

Application Support Engineer Day to day responsibilities

In my previous articles I have given the roles and responsibilities of L1,L2 and L3…

4 weeks ago

What is mean by SLA ( Service Level Agreement) with Examples?

In my previous articles i have given the hierarchy of production support in real company…

1 month ago

What is Production support Hierarchy in organization?

In this article i would like to provide information about production support organization structure or…

1 month ago

What are roles and responsibilities for L3 Support Engineer?

In my previous article I have given roles for L1 and L2 support engineer with…

1 month ago

What are roles and responsibilities of L2 Engineer?

I have started this new series of how to become application support engineer. This article…

1 month ago