liveBook · Manning

Star schema

As explained in Effective Data Analysis

A star schema is a dimensional database design with a central fact table connected directly to surrounding dimension tables.

A star schema organizes analytics data around a central fact table connected directly to surrounding dimension tables. It uses strategic denormalization to make business questions easier to query, interpret, and answer. section 11.4.2 section 11.5

Use the schema to separate business events from the entities and attributes that describe them:

  • Fact tables record numeric information about important processes or events, such as transactions, clicks, or page views. section 11.4.2
  • Dimension tables describe related entities, such as customers, users, or employees, with properties that may be combined, derived, or aggregated. section 11.5
  • Denormalization reduces joins and repeated calculations, but appropriate designs require knowledge of organizational processes, priorities, and stakeholder needs. section 11.4.2 section 11.4.3

Designing a schema from normalized data

Starting with customer, product, utility, and activity tables, identify primary and foreign keys, choose business actions for fact tables, choose business entities for dimensions, and draw their relationships. Validate the design with stakeholders and other analysts. section 11.4.3

Figure 11.21 Star schemas have fact tables at the center connected to dimensions with related attributes.
figure

A visual model places the fact table at the center and connects it to dimensions containing related attributes. section 11.4.2

How Effective Data Analysis covers it

How deep it goes
Explains fact and dimension roles, denormalization, and stakeholder design concerns, but stops short of implementation syntax.
Examples
Uses transactions, clicks, page views, customer activities, products, utilities, and a normalized startup schema as examples.
What it assumes
Assumes familiarity with normalized tables, primary and foreign keys, business processes, and stakeholder collaboration.
What you can do after
Build it from scratch by identifying keys, business events, entities, relationships, and stakeholder requirements in a normalized schema.
How it connects
Connects normalization, denormalization, fact tables, dimension tables, analytics engineering, metadata, and data quality.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Data Analysis. The section links point to the parts of the book it draws on.