I'm designing and building a sales fact table in a star schema and I can't seem to work out how to go about the following problem:
A customer can have 1 or 2 accounts, but an account can only belong to 1 customer. So this is a 1 to many relationship.
Should I create dimensions for customer and account, and link them with a bridge table?
In the final fact table I would have as example rows:
| date_id | cust_id | Acc_id | count(sales) |
| 1 | 150 | 25 | 1 |
| 1 | 150 | 26 | 1 |