Solved

Join Two fact tables that has different grain

Posted on 2007-12-02
2
1,293 Views
Last Modified: 2008-03-04
I have two fact tables that share the same dimension (consumer) but have different grains ..

Fact A:

Consumer_key, Episode_key, Episode_Begin_date_key,assessment_key

Fact B:
Consumer_key, Episode_key, Service_begin_date_key, Sum_of_Cost



There is 1:M relationshiop between Fact A and Fact B...

IS it a bad idea to join two fact tables to get a result ?
DO I have to always use a common dimension table , in this case, DimConsumer to join to fact tables?

0
Comment
Question by:jung1975
2 Comments
 
LVL 25

Accepted Solution

by:
imitchie earned 250 total points
Comment Utility
If some cases you have to join them together, then there's no other choice so there's no good/bad idea. However, you should reconsider alternate routes to arrive at your facts, possibly Fact C, if performance becomes an issue.
For joining, yes you do need a common dimension table.
0
 
LVL 5

Assisted Solution

by:nicolasdiogo
nicolasdiogo earned 250 total points
Comment Utility
i suppose i will have to say depends, you could use the more detailed fact to support deeper business investigations.

if you want to allow users to check customers' assessments using FACT A  and then drill through into FACT B on a second report would make sense and keep performance good.

BUT you could also amalgamate both FACTs into a single table if performance becomes an issue.

AND you will always need shared dimensions to be able to bridge between fact tables to make them work properly.


0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now