Questions tagged [star-schema]

Star schema is the most basic data warehousing dimensional structure and database schema, consisting of one or more fact tables referencing any number of dimension tables.

Star schema is the most basic data warehousing (data mart) dimensional structure and database schema, consisting of one or more fact tables referencing any number of dimension tables. It is organized like:

  • Facts - event that is counted or measured. They can be at a very atomic level. Generally assigned a surogate key to ensure every row can be identified.
  • Dimensions - reference information about facts. The records contain detailed information and attributes describing the fact data. Usually assigned a surrogate primary key.

Within the data warehouse and data mart the dimension table is associated with fact tables using foreign key relationship.

Advantages

In well-designed schemas multidimensional data can be analyzed easily. They are good in decision-support environments. Some of the advantages are query speed, data load and administration. The built-in referential integrity is good but not as in highly normalized databases though.

Examples

An example star schema could have a Sales Fact with Date, Product, and Store Dimensions. Any numerical performance measurements related to Sales would also be stored in the fact, like "Quantity Sold" and "Dollar Amount of Sale". The remaining columns in the Sales Fact would be foreign keys linking to the Dimensions.

More information

354 questions
0
votes
0 answers

Make Star Schema Benchmark(SSB) on Windows

I'm trying to compile the star schema benchmark on windows, but it returns the following error. NMAKE : fatal error U1073: don't know how to make 'dss.h' I´m very noob on c++ and make. Can´t figure how to solve this.
0
votes
0 answers

Datawarehouse, ROLAP and Storage Space

I have a star-schema with n dimensions and one fact table. Now I want to calculate the total amount of space is needed to save all the data from the star-schema in a ROLAP-Cube. Is there like a formula or something?
Hammelkeule
  • 197
  • 5
  • 17
0
votes
1 answer

Understanding Slowly Changing Dimension Type 2

I am having difficult time understanding how to use slowly changing dimension type 2, in my scenario. I have gone through different tutorial websites but they don't fit. I have an employee dimension table…
Miru
  • 158
  • 10
0
votes
1 answer

Join one dimension to multiple fact tables with different grain

I am new to Dimensional Data Modeling. I have one dimension and 2 fact tables: The one fact table (fact1) is joined to the dimension using the surrogate key. No problems here. I cannot seem to figure out what is the best way to join the dimension to…
0
votes
1 answer

Star Schema - External Identifier fact or dimension?

Here's a question I'm struggling with in a star schema design. The outline is that we track packages with embedded globally unique identifiers (tags). Each of those tags creates to a series of chronological events. I consider the events to be the…
ibhana
  • 151
  • 1
  • 9
0
votes
2 answers

Identify the data model grain

I'm currently working on a project of designing and implementing a banking data warehouse. I want to define the data model for the accounting data mart, define the grain and use the star schema to model it. I have been told that we are interested in…
yasmine92
  • 49
  • 9
0
votes
0 answers

fact table referencing another fact table

i'm very new to database design and wanted to ask if the following scenario is possible. I'm currently trying to design a db that contain an entity called Asset. Asset entity would have different types of assets such as laptop, desktop, software,…
Peter Chung
  • 1
  • 1
  • 1
0
votes
0 answers

Very Wide BI Reports from Star Schema

I am considering using a Dimensional Modeling/Star Schema warehouse to support an existing Business Intelligence reporting process (and obviously I am hoping to support other BI tasks that haven't even been though of yet), and I have a very basic…
0
votes
1 answer

PLSQL: Query star schema time-dimension without stored date

I have a star schema database with an Hour-Dimension (Time-dimension), with the following columns in it: ID, ON_HOUR, ON_DAY, IN_MONTH, IN_YEAR I then query the database, and I want to find all entries within an interval of given dates, based on…
Kirluu
  • 33
  • 1
  • 4
0
votes
1 answer

One or multiple fact tables

I am designing a data model for reporting against People who take courses. Im trying to figure out if i should use one or two fact tables. Measures I will need to calculate are: -Total number of students -Number of nationalities (and filter by…
0
votes
0 answers

SCD or late arriving Fact?

I have a star schema that shows employee roles in a company. At its simplest it is: DimDate DimPerson DimPaygroup DimRole Fact table looks like: PersonID, RoleID, PaygroupID, StartDate, EndDate If it is the current role the Enddate is set to…
JD_Sudz
  • 194
  • 1
  • 12
0
votes
1 answer

Granularity in Star Schema leads to multiple values in Fact Table?

I'm trying to understand star schema at the moment & struggling a lot with granularity. Say I have a fact table that has session_id, user_id, order_id, product_id and I want to roll-up to sessions by user by week (keeping in mind that not every…
0
votes
1 answer

Star Schema: How the fact table aggregations are performed?

https://web.stanford.edu/dept/itss/docs/oracle/10g/olap.101/b10333/globdiag.gif Assume that we have a start schema as above.. My questions is - In real-time how do we populate the colums (unit_price, unit_cost) columns of the fact table..? Can…
AKC
  • 953
  • 4
  • 17
  • 46
0
votes
1 answer

Country and Customer Dimension

I hesitate whether I should add a Country_Dimension or not since I already have a Customer_Dimension which contain some redundant fields such as: continent_name country_name postcode_#
0
votes
1 answer

Dimensional Modelling help needed - flat tables to star schema

I’ve been reading The Data Warehouse Toolkit 2nd Edition and have recently completed a SQL Server Analysis Services course. The aim of this post is help me with a design issue I’m experiencing I’m trying to design a star schema which will be…
Andy C
  • 1
  • 1