SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Drill Across, 2 snapshot Fact tables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

meth73
Starting Member

Australia
10 Posts

Posted - 06/09/2012 :  20:53:32  Show Profile  Reply with Quote
I understand that it is bad practice to attempt to join Fact tables, and I've tried reading through a lot of the Kimball material, but am yet to identify something that will point me in the right direction.

Fact Table 1:
-------------
ID int PK
DateKey int
CaseID int
<various attributes that change over time>


Fact Table 2:
-------------
ID int PK
DateKey int
CaseID int
SLO_ID int
Result bit
<various attributes that change over time>

The issues is that Fact table 1 to Fact table 2 has a 1-to-many relationship.

One option might be to combine both Fact tables into 1 table, but this might require using a distinct count for the measures, and there could be other drawbacks in going down this path.

Some suggestions on the way forward would be appreciated.

tkizer
Almighty SQL Goddess

USA
35017 Posts

Posted - 06/09/2012 :  21:28:07  Show Profile  Visit tkizer's Homepage  Reply with Quote
quote:
Originally posted by meth73

I understand that it is bad practice to attempt to join Fact tables



Says who?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000