Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I would like to model the purchasing process of a company, I would also like to respect the star schema.
In the company, every employee is a buyer and this buyer belongs to a buyer group, for example:
buyer buyer group
buyer 1 group 1
buyer 1 group 2
buyer 2 group 2
the problem is that the same buyer can belong to several groups, so I can't put buyer group in the same dimension table that contains the information of each buyer.
so as a solution, do i create another dimension table that contains only one column that is the buyer group and that will be related to the fact table directly
I have the same case for the bank account used to make the purchase by the customer.
Translated with www.DeepL.com/Translator (free version)
@Omar_Sek , The best would be
We should avoid many to many in star
@amitchandak in this case , it will be a many to many relationship , i can' avoid that .How should u handle it ? Thanks
User | Count |
---|---|
130 | |
108 | |
101 | |
67 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |