1

I am a newcomer to data warehouses and have what I hope is an easy question about building a star schema:

If I have a fact table where a fact record naturally has a one-to-many relationship with a single dimension, how can a star schema be modeled to support this? For example:

  • Fact Table: Point of Sale entry (the measurement is DollarAmount)
  • Dimension Table: Promotions (these are sales promotions in effect when a sale was made)

The situation is that I want a single Point Of Sale entry to be associated with multiple different Promotions. These Promotions cannot be their own dimensions as there are many many many promotions.

How do I do this?

Jon Seigel
  • 12,251
  • 8
  • 58
  • 92
Mike Gates
  • 1,874
  • 3
  • 21
  • 40

1 Answers1

1

Use bridge table

fact table=>promotion group dimension=>promotion group bridge table=>promotion

Read Kimball books' they help a lot ;-)

ETL Man
  • 245
  • 1
  • 2
  • 7
  • Can you confirm that in this scenario, it can not be determined "how much of the sale" is attributed to each individual promotion, so there is no drilling down from promotion group to one particular promotion or another - is that correct? – qxotk Feb 06 '14 at 21:47