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

Convert a none-star-schema database to star schema database

I'm new to OLAP and I ran into the following situation: I have a none star schema database(PostgreSQL) that contains hundreds of tables, and now I need to convert it to star schema database in order to perform OLAP. Here comes some questions: Do I…
Neo
  • 2,196
  • 5
  • 32
  • 58
1
vote
1 answer

Star Schema Design: Use 2 Dimensions or 1 Conformed Dimension when source systems relate many to one (N:1)?

I am creating a star schema to model Terms and Classes at a school. The Learning Management System (LMS) - where the classes take place, associates each class to a particular LMS Term. The Student Information System (SIS) - where the students…
1
vote
0 answers

Snowflake dimension with multiple levels mondrian

My tables structure is as follows dim_question_tbl table with primary key dim_question_id_i(pk) dim_grade_tbl -> dim_grade_id_i(pk), grade_name_c dim_level_tbl -> dim_level_id_i(pk), level_name_c dim_grade_question_tbl ->…
Praveen
  • 11
  • 2
1
vote
1 answer

MySQL query stuck at "Sorting Result" for a single row result set

I am building a star schema to act as the backend for an analytics app I am building. My query generator is building queries using a regular star-join pattern. A sample query is below, whereby a fact table is joined to two dimension tables and the…
1
vote
1 answer

How to Model Parent-Child Relational Table in a Dimensional Schema

In the source relational database, there is a table called CompanySurety, with INT IDENTITY PK SuretyId which has a self-referencing ExtendsSuretyId FK column pointing to a parent SuretyId row. Bringing this data into to a star-schema model, I've…
udog
  • 1,490
  • 2
  • 17
  • 30
1
vote
1 answer

Data mart structure for determining unique logins

Background: I have a Data Mart based on a star schema structure (i.e. Fact and Dimension tables). I've mastered the art of determining a normal count of the number of user logins for any combination of a dimensions including date ranges, interfaces…
vandiedakaf
  • 514
  • 1
  • 6
  • 18
1
vote
1 answer

reporting vs analysis with Star schema data warehouse

I'm working on a BI project where i'll use pentaho. My DW will be modelize as a star schema. I know that for the analysis part we need to go from this star schema (relational DW) and design the cube thks to schema workbench for example. Thks to…
joris
  • 435
  • 1
  • 7
  • 18
1
vote
9 answers

Reporting tool for OLAP, *not* OLTP!

I'm looking for a control that I can put on top of an already existing OLAP star schema to allow the user to define their own "queries" and generate reports. Right now I have some predefined reports built on top of the cubes, but I'd like to allow…
Stefan Moser
  • 6,663
  • 9
  • 35
  • 48
1
vote
1 answer

Usefulness of a covering index on a fact table

Consider a fact table of the form: CREATE TABLE Fact1 ( Dim1 int NOT NULL, Dim2 int NOT NULL, Dim3 int NOT NULL, Data1 int NOT NULL, Data2 int NOT NULL ... ) Fact1 has a single column index on each of the dimensions. Dim1 is…
Mike Bailey
  • 12,479
  • 14
  • 66
  • 123
1
vote
2 answers

Creating a data warehouse with SQL Server 2008 Enterprise

I need to build a Data Warehouse for an existing SQL Server database. I already have the design of the star schema dimension and fact tables. My question is: Is there a tool in SQL Server 2008 Enterprise to help me with translating my data from the…
j0aqu1n
  • 1,013
  • 7
  • 14
1
vote
1 answer

Trying to Design Star Schema involving "types of rentals"

I am designing a movie rental data warehouse I want the fact table to consist of movie rentals/returns but I'm getting confused. The movies can be returned at any store so I need to show that. I have these dimensions: time, customerinfo, movie info…
0
votes
1 answer

Insert into Star Schema efficiently using JDBC

I have star schema model in which Server Table contains information about server name. Information Table contains information that I want for specific server. And Actual Data Table contains information about which server contains which…
arsenal
  • 23,366
  • 85
  • 225
  • 331
0
votes
1 answer

How to deal with Foreign Keys into Dimension Tables

I am trying to separate the following fields into a new dimension table called Territory. As you can see, there is no TerritoryKey in the Fact Table I have. As the columns should not repeat in a Star Schema, how can I separate those columns into a…
0
votes
0 answers

power bi scatter plot with customized color points and cross-filtering cards

I created two dim tables Price and Km and made a one to many relationship with each of FactTAB1 and FactTAB2 I've not found on the web and in the sw setting the possibility to show color of the points in a scatterplot with axis Price and Km based…
0
votes
1 answer

Power BI Data Modelling - why is this bad design?

I have an abstract data modelling question. I have the following 4 tables: Programme - a programme is a building project. e.g. Eiffel Tower building project. Programme ID is the unique identifier. Work Stream - A programme has many workstreams.…