Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Schemas for Multidimensional Databases

Lesson 8 of 32 in the free Data Warehousing and Data Mining(Elective-II) notes on Siksha Sarovar, written by Rohit Jangra.

---

7. Schemas for Multidimensional Databases

The schema defines the logical structure of the data warehouse. There are three primary types of schemas.

7.1 Star Schema

  • Definition: The simplest and most common schema. It consists of one large central Fact Table surrounded by smaller Dimension Tables.
  • Structure:
  • The center is the Fact Table (contains Foreign Keys referencing Dimensions and numeric Measures).
  • The points of the star are Dimension Tables.
  • The Fact Table is in 3NF, but Dimension Tables are De-normalized (flattened).
  • Characteristics:
  • Simple queries (fewer joins).
  • Fast query performance.
  • Higher data redundancy in dimension tables.
  • Easier for business users to understand.

7.2 Snowflake Schema

  • Definition: A variation of the Star Schema where dimension tables are Normalized (split into multiple related tables).
  • Structure: The Fact Table is still central, but dimension tables are broken down into sub-dimensions. This looks like a snowflake structure.
  • Characteristics:
  • Reduces data redundancy (saves storage space).
  • Easier to maintain dimension data.
  • Disadvantage: Queries require more joins, which can slow down performance.
  • Complex for end-users to navigate.

7.3 Galaxy Schema (Fact Constellation Schema)

  • Definition: A schema that contains multiple Fact Tables sharing common Dimension Tables.
  • Structure: Two or more Fact Tables share dimension tables.
  • Usage: Used when a business has multiple processes (e.g., Sales and Inventory) that need to be analyzed together.
  • Characteristics:
  • Most complex design.
  • Allows for cross-functional analysis.
  • Shared dimensions are called "Conformed Dimensions."

7.4 Comparison of Schemas

FeatureStar SchemaSnowflake SchemaGalaxy Schema
Fact TablesSingle Fact Table.Single Fact Table.Multiple Fact Tables.
Dimension TablesDe-normalized (Flat).Normalized (Split).Can be Shared/Conformed.
Query ComplexityLow (Few joins).High (Many joins).Very High.
PerformanceFastest.Slower due to joins.Moderate.
Data RedundancyHigh.Low.Moderate.
Use CaseStandard analysis.Detailed normalization needed.Enterprise-wide analysis.