Solved

OLAP  - Star Schema - How to?

Posted on 2008-06-19
2
1,145 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
[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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
simple bash script needed to unpack tar.gz 4 57
Access #Deleted data 20 64
update based on the value on another table 8 38
comparing two rows 10 38
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
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…

739 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