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
3 answers

Is it a good idea to include flags in Fact table

The transactional fact table of one ofthe star schemas need to anser questions like Is the first application is final application.This is associated with one of the business process. Is it a good idea to keep this as a part of the fact table with a…
0
votes
1 answer

Dimensional modeling for waiting process

Business Scenario: I am designing a dimensional model for a university application processing.The university has 15 colleges under it.While making an application,an applicant can give the choices like 1,2,3 etc.The thing is if the 1st college…
0
votes
1 answer

Linking two Dimension Tables

I am new to Data warehousing and have set up multiple Dimension Tables and Fact Tables using a STAR schema. I have a question that using STAR schema, can two dimensions be linked together using a primary key/foreign key approach. I have read that…
AndroidDev
  • 15,993
  • 29
  • 85
  • 119
0
votes
2 answers

Material and Product hierarchies

I have a master data with both the material and product details in a single table. I am creating a star schema and my question is do i need to make two dimension table with separate material attributes and product attributes or can i have both in a…
Arun.K
  • 103
  • 2
  • 4
  • 21
0
votes
0 answers

Star Schema design

I have a question in regards to star schema design, whether I need to use snowflake (which I read should be avoided). I have the following three dimension tables: Main list dim. - contains list of people Sub lists dim. - contains all sorts of…
karel lahmy
  • 397
  • 1
  • 5
  • 15
0
votes
1 answer

Star schema and bridge tables for many to 1/2 relationship

Currently, I am participating in the design of a new data warehouse. I am quite new to this topic and have a general question regarding Star Schema and Many-to-Many relationships, in particular Many-to-1/2 relationships. I would like to illustrate…
moewe
  • 1
  • 1
0
votes
0 answers

Star Schema. One to many cardinality

I am building the data warehouse based on the star schema and I've got difficulties with one issue as follows: I have a dimension "Manufacturer" that can have several brands in his production line. And of course one brand belongs just to one…
0
votes
1 answer

How to design an errors table for data validations in a star schema

I am working in SQL Server 2008. I have been tasked with writing a stored procedure to do some data validations on external data before we move it into our star schema data warehouse environment. One type of test requested is domain integrity /…
skyline01
  • 1,919
  • 8
  • 34
  • 55
0
votes
1 answer

Data warehousing more than one data type in a fact table

I'm working towards a Star Schema for a database which includes details about both results for individuals who have undergone training and assessment, and their feedback on the training. To maintain simplicity and performance it makes sense to limit…
ruskind
  • 217
  • 4
  • 13
0
votes
1 answer

Difficulty modeling Star schema

First of all, I'm sorry about the title... As soon as someone answer it and I understand what was my actual problem, I'll put a better one. I am creating a fact table which will measure the amount of reasources related to schools: Amount of…
0
votes
1 answer

Star Schema Design for User Utilization Reports

Scenario: There are 3 kinds of utilization metrics that i have derive for the users. In my application, users activity are tracked using his login history, number of customer calls made by the user, number of status changes performed by user. All…
0
votes
0 answers

Fill Fact Table with MultiColumn Business Key Lookup

I've been doing some searching on Stack Overflow as well as Google and haven't quite found the answer to my question, so here we go: It's been a minute since I've done a 'from the ground up' data warehouse project, so I'm dusting off some of my…
0
votes
1 answer

Creating fact table with year of 9999

I'm building a simple fact table in oracle based on a customer status where a customer has a status, 'Active' and 'Lost' and a date they started with that status and a date they ended. A sample 3 rows would be; CustID | status | date_start |…
Grant McKinnon
  • 445
  • 3
  • 7
  • 17
0
votes
1 answer

key structure in a datawarehouse

i have a question related to the structure of dimension-keys. I am building classical Star Schema. Therefore i am creating dimension keys by using a sequence so that every entry in my dimension table has its own unique key. So far so good. Now i…
user3364656
  • 279
  • 2
  • 4
  • 9
0
votes
1 answer

How to use Oracle Materialzed View in a Dimensional Model

I have a dimensional model with a large fact table (millions of rows) which is range partitioned by date and smaller dimensional tables that are not partitioned. I came across materialized views which is often used in these scenarios to improve…
sfactor
  • 12,592
  • 32
  • 102
  • 152