Laynetworks  
Web laynetworks.com Google
Home | Site Map | Tell a friends
Management Tutorials
Download
Tutorials
History
Computer Science
Networking
OS - Linux and Unix
Source Code
Script & Languages
Protocols
Glossary
IGNOU
Quiz
About Us
Contact Us
Feedback
 
Sign up for our Email Newsletter
 
Get Paid for Your Tech Turorials / Tips

 
Home >Tutorial > Entity Relational Modeling vs. Dimensional Modeling > Star Schema
Page : 1 2 3 4 5 6 7 8 9 10
Entity Relational Modeling vs. Dimensional Modeling
 
Star Schema
  • A relational database schema for representing multimensional data.
  • It is the simplest form of data warehouse schema that contains one or more dimensions and fact tables.
  • It is called a star schema because the entity-relationship diagram between dimensions and fact tables resembles a star where one fact table is connected to multiple dimensions.
  • The center of the star schema consists of a large fact table and it points towards the dimension tables.
  • The advantage of star schema are slicing down, performance increase and easy understanding of data.
 
 
Star Join
  • In star schema example we had 4 dimensions like location, product, time, organization and a fact table(sales).
  • In snow flake schema, the example has 4 dimension tables, 4 lookup tables and 1 fact table. The reason is that hierarchies(category, branch, state, and month) are being broken out of the dimension tables(PRODUCT, ORGANIZATION, LOCATION, and TIME) respectively and shown separately.
  • In OLAP, this snow flake schema approach increases the number of joins and poor performance in retrieval of data. In few organizations, they try to normalize the dimension tables to save space. Since dimension tables hold less space, snow flake schema approach may be avoided.
Snowflake schema
  • A is a term that describes a star schema structure normalized through the use of outrigger tables. i.e dimension table hierachies are broken into simpler tables.
  • In star schema example we had 4 dimensions like location, product, time, organization and a fact table(sales).
  • In snow flake schema, the example has 4 dimension tables, 4 lookup tables and 1 fact table. The reason is that hierarchies(category, branch, state, and month) are being broken out of the dimension tables(PRODUCT, ORGANIZATION, LOCATION, and TIME) respectively and shown separately.
  • In OLAP, this snow flake schema approach increases the number of joins and poor performance in retrieval of data. In few organizations, they try to normalize the dimension tables to save space. Since dimension tables hold less space, snow flake schema approach may be avoided.
Important aspects of Star Schema & Snow Flake Schema
  • In a star schema every dimension will have a primary key.
  • In a star schema, a dimension table will not have any parent table.
  • Whereas in a snow flake schema, a dimension table will have one or more parent tables.
  • Hierarchies for the dimensions are stored in the dimensional table itself in star schema.
  • Whereas hierachies are broken into separate tables in snow flake schema. These hierachies helps to drill down the data from topmost hierachies to the lowermost hierarchies.
TOP
 
Page : 1 2 3 4 5 6 7 8 9 10
   
Donation | Useful links | Link to Laynetworks.com | Legal
Copyright © 2000-2010 Lay Networks All rights reserved.