Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Join Two fact tables that has different grain

Posted on 2007-12-02
2
Medium Priority
?
1,365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
imitchie earned 1000 total points
ID: 20391999
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 1000 total points
ID: 20396038
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

604 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