SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Question on Cube Design


Question on Cube Design

Author
Message
SQL_Surfer
SQL_Surfer
SSChasing Mays
SSChasing Mays (651 reputation)SSChasing Mays (651 reputation)SSChasing Mays (651 reputation)SSChasing Mays (651 reputation)SSChasing Mays (651 reputation)SSChasing Mays (651 reputation)SSChasing Mays (651 reputation)SSChasing Mays (651 reputation)

Group: General Forum Members
Points: 651 Visits: 1086
Hi,

I am kind of newbie on OLAP and I have some questions.

I have about 6 tables in my OLTP database that gets loaded overnight from different sources, to track the user activities in our distribution center; how many packages a user picked, packed or shipped or stocked in a particular day. So, here are the tables.


1) Picking Table: Column: UserID, ReportDate, PickCount
2) StockingTable: Column: UserID, ReportDate, StockingCount
3) ReceivingTable: Column: UserID, ReportDate, ReceivingCount.

And so on….

My question is; I want to develop a single cube that would contain all the counts (of picking, stocking, receiving…e.t.c) for all the users….The issue is there is no relations between these tables whatsoever…..They are independent of each other….But they will be related to TimDim table based on the ReportDate field.

And the measures (PickCount, StockingCount, ReceivingCount…) are stored in the same table…..In other words, both dimensions (ReportDate, user) and measures (PickCount, ReceivingCount..e.t.c) are in the same table….

Is a cube development possible in such scenario where no relation exists? Do we need to manually add the relations? Relation between the existing fields (userid, reportdate) or do we need to add new key into the relations?

What would be the best way of doing this?

I would appreciate if you can shed some light on this.

Thanks,
SQL_Surfer
Scott Murray-240410
Scott Murray-240410
Old Hand
Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)Old Hand (397 reputation)

Group: General Forum Members
Points: 397 Visits: 3117
This process is doable, although you may want to explore some design information on the web from the two many design patterns: Kimball is one and Inmon is the other.

Specifically, you can have multiple fact tables in a single cube and you can have "fact" dimensions, although I have found such a setup is not very performant. You may want to explore moving the data into some data warehouse tables which more closely match you desired end results.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search