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
1
vote
1 answer

Questions on how to model many semi-boolean attributes in a star schema

What's the best way to model 37 different attributes/"checkpoints" (that can be graded as Pass/Fail/Not Applicable) in a dimension for a star schema where each row in the fact table is a communication that is graded against the checkpoints in…
1
vote
3 answers

Designing a data warehouse for inventory management

I have a college assignment requirement to built a Data warehouse for product Inventory management which can help inventory management understand in-hand value and using historical data they can predict when to bring new inventory. I have been…
Saurabh
  • 65
  • 1
  • 8
1
vote
1 answer

Creating a "DWH like" Star Schema in MySQL

I am pretty new to databases and SQL in general and have a pretty important task that I do not know how to solve. Given that I have a Company (Company A) with three different subsidiaries (Sub A, Sub B, Sub C). All three subsidiaries produce the…
Maik
  • 74
  • 1
  • 7
1
vote
1 answer

Modelling chart data in star schema

I am interested in storing scientific data from a chart (plot) of say x against y in a data warehouse, where both x and y are real numbers. Each chart will be generated for a fixed set of descriptive dimensions (e.g. time, date, location, equipment)…
adam
  • 23
  • 4
1
vote
2 answers

Selecting data across day boundaries from Star schema with separate date and time dimensions

What is the correct way to model data in a star schema such that a BI tool (such as PowerBI) can select a date range crossing multiple days? I've currently got fact tables that have separate date and time dimensions. My time resolution is to the…
1
vote
1 answer

Which is the best approach for a dimension (SCD-2 or a SCD-1 + a whole new dimension)

Let´s say I have the following situation: A dimension Product with some attributes that aren't volatile (Description and Diameter - they can only be changed by a SCD-1 change for correction) and a attribute that can be volatile (Selling Group, it…
Sawd
  • 185
  • 3
  • 13
1
vote
1 answer

Postgresql star schema pivot query?

I have a medium sized database housed in a star-schema with four outer branches of the star. For one particular piece of visualization software I'm evaluating, I need to query this database into an SPSS file with one of the outer branches pivoted…
Hedekar
  • 33
  • 5
1
vote
2 answers

How to design and handle exponential growth in fact table?

Here is my scenario with SQLServer 2008 R2 database table (Update: Migration to SQL Server 2014 SP1 is in progress, so SQL Server 2014 can be used here). A. Maintain daily history in the table (which is a fact table) B. Create tableau graphs using…
Bhanu
  • 831
  • 3
  • 13
  • 28
1
vote
3 answers

Star Schema design from 3NF

I'm a newbie to data warehousing and I've been reading articles and watching videos on the principles but I'm a bit confused as to how I would take the design below and convert it into a star schema. In all the examples I've seen the fact table…
saj
  • 4,626
  • 2
  • 26
  • 25
1
vote
2 answers

General understanding of star schema design

So, I think I understood what to put in dimensions, what in the fact table, and how to achieve this. Now I got the problem, that I have this dimension 'product' and a dimension 'productProperties'. I had to split this, cause otherwise my natural…
fancyPants
  • 50,732
  • 33
  • 89
  • 96
1
vote
1 answer

Data Warehouse: Modelling Workload Allocations

We have a system that tracks the allocation of a unit of work, from receiving that unit of work till completing that unit of work. A unit of work has a number of attributes, it's source, it's type etc. These I'm fairly ok with modelling, likely to…
THEMike
  • 1,701
  • 2
  • 17
  • 28
1
vote
2 answers

star schema design - one column dimensions

I`m new to data warehousing, but I think my question can be relatively easy answered. I built a star schema, with a dimension table 'product'. This table has a column 'PropertyName' and a column 'PropertyValue'. The dimension therefore looks a…
fancyPants
  • 50,732
  • 33
  • 89
  • 96
1
vote
2 answers

Dimensional model to capture Sales weighting on different date schedules

We have a requirement to come up with a strategy to show Sales revenue data weighted by dates differently on different schedules. We currently have a FactSales table with a grain of one row per order with the measure of sales amount. We have…
1
vote
0 answers

How to use temp table for ETL during populating Star schema?

I have the scripts to pull data from RDBMS and populate the Data warehouse. It works. I was wondering how Temp table comes in between. What are the steps to ETL exactly? Even though my data warehouse is populated, my teacher says that we need to use…
DazedNConfused
  • 189
  • 2
  • 13
1
vote
1 answer

Star Schema - Attributes in Fact Tables

normally a fact table in a Star Schema contains just foreign keys to the dimension tables and measures. Let's say I have a delivery and I want to store the delivery # and a reference # can I just store the delivery & reference # in the fact table?…
jP_
  • 151
  • 1
  • 8