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

data model creation in SQL Server

Can we create the data model from the existing database in SQL Server like star schema or snowflake schema pictorial form? If yes, could you please help me the steps to create the datamodelling in SQL Server. Thanks in Advance.
charan
  • 29
0
votes
0 answers

SSIS: Loading Fact Table ID's (Look up Dimension ID's) and measures data (from Excel file)

I'm having some trouble loading a fact table (Fact_Servicio) of a star schema I made in SQL Server, here the diagram: All the ID's are identity columns. Our case is the following: we have a Service Desk software which makes daily reports, and we…
Jplaudir8
  • 143
  • 1
  • 6
  • 18
0
votes
3 answers

How to handle a dimension table with duplicate ids containing slightly different values in data warehouse?

I'm building out the data warehouse at my company and I've encountered a situation where I am pulling in data with slight variations in name but tied to the same ID. This is obviously a problem because my dimension table should only have one record…
0xPeter
  • 546
  • 1
  • 6
  • 15
0
votes
1 answer

Denormalizing data to fit into a star schema

I'm looking into moving data from and OLTP to an OLAP to help speed up analytics. I've been researching my current question for 2 days now and have not found a definitive answer anywhere. Currently I have a highly normalized relational schema and…
0
votes
1 answer

How to implement a Role Play Dimension into Data Vault

I have a data model based on a star schema. It stores three date elements. I integrated them into one role play dimension to avoid redundant dates. I would like to store my data into a data vault model in the core DWH and show the star schema as a…
yellow days
  • 1,053
  • 2
  • 9
  • 11
0
votes
1 answer

modeling scenario with mostly semi-additive facts

Im learning dimensional modeling and Im trying to create a model. I was thinking about a social media platform which rates hotels. The platform has following data: hotel information: name and address a user can rate hotels (1-5 points) a…
yellow days
  • 1,053
  • 2
  • 9
  • 11
0
votes
1 answer

Populate Date Dimension Table and Determine Day Type via PL/SQL

I have the following SQL Table: CREATE TABLE SALES (saleID INT PRIMARY KEY, grossSalePrice DECIMAL(9,2), vehicleStatus VARCHAR(10) NOT NULL CHECK (lower(vehicleStatus) IN ('available', 'sold', 'pending')), saleDate …
StevenC
  • 109
  • 1
  • 20
0
votes
2 answers

Data warehouse design - Multiple lookup values

Looking for inputs on a data warehouse schema design. Here is the scenario: I have an Action Table and User Table that is currently joined based on UserId to get the details about the user who did an action. Action Table: UserId Action 123…
WhatsUp
  • 73
  • 1
  • 7
0
votes
2 answers

Academic Term Start and End dates

I have academic term start and end dates for each term (spring, summer, fall) for academic years ranging from 1975 to 2020 in D_Term dimension. For example: 2017-01-16 to 2017-05-18 (Spring) 2017-06-05 to 2017-08-04 (Summer) 2017-08-24 to…
0
votes
0 answers

Automatic Facebook ad form data warehouse insights

I have a client's data warehouse in which I fetch a lot of data. I have a star schema for Newsletters and global emails. I also set up client's ads on Facebook and create audiences to target them right. So, is it possible to connect the graph…
0
votes
1 answer

design database in star model

I have following tables in my database (this is only a single part). C_location table - hold information about locations (about 500 row) C_ProjectStatus table - hold information about ProjectStatus (about 5 rows) Project table - hold information…
0
votes
1 answer

Include everything in star schema?

I'm new to star schema and I'm confused about what variables to include in it. Say I have a dataframe of some movies, columns include info on director, actors, ratings, reviews, genres, etc. If I want to make a star schema, should I try to include…
efsee
  • 579
  • 1
  • 10
  • 22
0
votes
1 answer

Data warehouse dimension design, customer and contact

In our relational database we have both customer and contact tables. The customer is the organization or company and the contacts are all the individual contacts in the organization or company. I am trying to conform to a star schema and I was…
user7593937
  • 545
  • 1
  • 5
  • 16
0
votes
1 answer

Pentaho Spoon Database Lookup, how to compare between dates

I'm using Pentaho Spoon to develop an ETL, I need to make a serie of lookups taking Extract's denormalized data and retrieving Dimension's PKs. One of these dimensions has starting and ending date for the vigency of a record. So, I need to lookup…
Hikari
  • 3,797
  • 12
  • 47
  • 77
0
votes
2 answers

DWH not a Star-Schema not a Snow flake not a E-R

I m aware aboud litterature/Theorie for datawarehouse-architecture and how should be design. The Bill-Imon E-R 3NF or the Kimball Star-Schema/Snow - flake Schema. The problem come when i currently work in a DWH and it have no either any of these…