Solved

OLAP  - Star Schema - How to?

Posted on 2008-06-19
2
1,141 Views
Last Modified: 2013-11-16
Consider 2 tables that I want to incorporate somehow into an OLAP solution.

Customers (Customer Name, Age, StoreLocation, CurrentBalance)
One Row for each Customer
John Doe, 35, Modesto, $0

Customer Invoice(Customer Name, Period, AmountPurchase, AmountPaid, PurchaseType)
One Row  for each period  the customer made purchase or payment.

John Doe,  May2004,    $95.00,        $0,  Camping Gear
John Doe, June2004,           $0, $95.00,  Payment
John Doe,  Sep2007,  $505.00,        $0,  Bicycle
John Doe,  Dec2007,           $0,    $505,  Payment

So I have a typical One to Many type relationship but I want to put this into an OLAP.  
Beside the dimensions like Period, PurchaseType: PurchaseType don't I want to take the above 2 tables and put them into a single fact table?

Customer Name, Age, StoreLocation, CurrentBalance, May2004Purchase, May2004PurchaseType ...

Could be a very wide flat table that becomes the fact table.  How do you model this kind of table.
If the customer has been doing business for many years I could run out of columns.



0
Comment
Question by:michaelrobertfrench
2 Comments
 
LVL 8

Accepted Solution

by:
srnar earned 500 total points
ID: 21829245
Desing constraints are domain of Olap tools. You don't mention which Olap tool you are going to use. For example in Microsoft Analysis Services 2005 I would model above situation fully normalized (Invoce = Sales fact table, Customer = Dimension table - intermediate dimension for a potential [Customer store] dimension etc.)

The only exception for denormalization would be in case where there is very rich Snow flake model on very big dimensions where processing of would take long time.

Imagine - the denormalization takes also processing time and can suffer all developer errors.
0
 

Author Closing Comment

by:michaelrobertfrench
ID: 31469007
thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle Public Synonyms and Privileges 2 73
Trigger usage 2 75
Sql Join Problem 2 53
best datatype for oracle table email creation 8 55
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 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