I would like your advice on a star schema that i am working on.
Essentially,
I have Payments with many attributes like (who is paid, what is the payment status, abt 7 different payment dates etc)
Each payment is made up of invoices/source documents.
I have a dimension payment,
a fact expenditure_payment which basically contains all the invoices/source docs info.
I am unsure on whether to include the payment dates into the fact expenditure_payment or onto the dimension_payment. (because the dates actually apply to the payment, not the invoices)
I am also unsure as to create seperate dimension for the invoices/source documents, mainly because it will be a 1 to 1 relationship between dimension invoice and the fact expenditure_payment.
at the moment, i have included all the invoice information onto the fact_expenditure_payment, but not the fact is getting a little wide with a couple description fields.
Many thanks!
Essentially,
I have Payments with many attributes like (who is paid, what is the payment status, abt 7 different payment dates etc)
Each payment is made up of invoices/source documents.
I have a dimension payment,
a fact expenditure_payment which basically contains all the invoices/source docs info.
I am unsure on whether to include the payment dates into the fact expenditure_payment or onto the dimension_payment. (because the dates actually apply to the payment, not the invoices)
I am also unsure as to create seperate dimension for the invoices/source documents, mainly because it will be a 1 to 1 relationship between dimension invoice and the fact expenditure_payment.
at the moment, i have included all the invoice information onto the fact_expenditure_payment, but not the fact is getting a little wide with a couple description fields.
Many thanks!