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

Not sure whether to model Tickets as a Fact or Dimension

I have a source with information about TICKETS and about TIME_ENTRIES. Initially I wanted to model TICKETS as a fact table with measures like first_response_time, resolve-time, and with dimensions like Requester/company, Agent/-group, start-date,…
Bart Jonk
  • 365
  • 3
  • 14
0
votes
1 answer

Should I use multiple fact tables for each grain or just aggregate from lowest grain?

Fairly new to data warehouse design and star schemas. We have designed a fact table which is storing various measures about Memberships, our grain is daily and some of the measures in this table are things like qty sold new, qty sold renewing, qty…
0
votes
1 answer

QlikSense help - Star Schema/Joins or ApplyMap

I'm a new user to QLIK, scripting & overall beginner. I am looking for any help or recommendations to deal with my tables below. Just trying to create a good model to link my tables. Created a sample here file The original 3 tables are different qvd…
Pinepenny
  • 11
  • 3
0
votes
1 answer

Star schema for tables with overlap periods

I need to design a star schema, which responds to my future indicators and which will be later implemented in a datawarehouse, but my knowledge is very basic and I am having serious difficulties in developing the model I am unsure of whether I…
RitaM
  • 143
  • 1
  • 6
0
votes
1 answer

Can we use data warehouse to store time series data?

We have an airflow job that captures data from an API every 15 mins. Can I store this time series data in Data Warehouse? It's not fit the grain of any of our star schemas but will be used with the aggregated results from star schema when used with…
user16344431
0
votes
0 answers

Is this the right approach for preparing fact data before loading to DW?

Our source system data is not a typical sales transaction table that references product and customer business keys at the transaction record. There are one or two tables in between before I can get to the customer or product information. When I…
0
votes
0 answers

Is there better approach to model the event? Evolving to discrete event

I have a few questions about one of my process implementations in the DW. It would be great if you can provide your suggestion. At a high level how business works Requester requests quotes --> lenders provide quotes --> requester acts on quote. I am…
user16344431
0
votes
0 answers

8 vCPU, 32 GB memory, 250 GB SSD server needs 1 to 2 seconds for a query with 12 SUM functions and a JOIN on a table with 80,000 rows

I have the following 2 tables (browsers and metrics). browsers is a "dimensions table" which stores the name and version of a browser. metrics is a "facts table" which holds the browser_id and metrics, in conjunction with a date. According to…
0
votes
1 answer

Star schema design feedback

I work for an OTC company. Here is the background on the workflow. Taker (Buyer) --> Requests a quote on derivatives --> Maker(Quoter) responds with quotes (bid/ask) ---> Taker either buys/sells ( traded) or takes no action on the quote. The quote…
0
votes
1 answer

Spotfire for cross fact table joins using conformed dimensions

A few years I ascertained that Spotfire cannot perform multi-fact table queries using conform dimensions a la Ralph Kimball - like Tableau in which this is still the case. Is this still so? Most people I speak to are not aware of this. I am not in a…
thebluephantom
  • 16,458
  • 8
  • 40
  • 83
0
votes
1 answer

How to populate star schema database with data from CSV file using jasperETL?

I'm new to jasperETL and i have to populate star schema database with data from CSV file. Does anyone know how to perform this task? Maybe there is some tutorial or book, where i can find this information. I searched in the internet but found…
balytskyi
  • 303
  • 3
  • 10
0
votes
1 answer

Star schema Sales and goal

I have a star schema, the fact table is sales I have a product, region date dimension (date, year, month, day). Now I have a file that contains goals of sale by year and month , Now i need to compare the goal of sale with the real value (from sale…
andy
  • 47
  • 5
0
votes
0 answers

Star Schema Data Mart

Please I'm struggling with the conception this is the Relational diagram of my database: so production order has only one machine, and it has its start and end date and quantity to produce. the step has the production each day for a specific…
andy
  • 47
  • 5
0
votes
1 answer

Designing fact table with mix granularities

I am designing a data model for reporting. In the source there are three tables which has to be considered. Invoice table Test table Services table Test and services are against an invoice. One invoice can have multiple test as well as multiple…
0
votes
1 answer

Data Modeling for Power BI

I believe I have a data modelling problem since I can't connect my fact table with my ABC dimension. I just tried several things but nothing seems to work, so I am searching for some improvement tips, if you can help. I am also new using power BI. I…
jessirocha
  • 457
  • 4
  • 15