Unix Technical Forum

Two fact tables with one-to-many relationship?

This is a discussion on Two fact tables with one-to-many relationship? within the SQL Server Data Warehousing forums, part of the Microsoft SQL Server category; --> I had a huge fact table with the following structure. fact1 (Fact1ID, D1, D2,... M1, M2, M3....) where PK ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server Data Warehousing

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:10 PM
=?Utf-8?B?eWRibg==?=
 
Posts: n/a
Default Two fact tables with one-to-many relationship?

I had a huge fact table with the following structure.

fact1 (Fact1ID, D1, D2,... M1, M2, M3....)
where PK is Fact1ID, D1, D2,... are dimension key and M1, M2, M3 are
measures.

Now I need add a new fact table fact2, which has many-to-one
relationship ([1-365] to 1) to fact1,

fact2(Fact1ID, Date, Dx, Dy,..., Mx, My....),
which Fact1ID and Date are PK of this fact table. (fact2 are the
daily data of fact1)

Some reporting queries need to join these two huge table and they are
very slow. Any better design?
Or just put D1, D2, ... from fact1 to fact2?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com