Following example demonstrates dimensional modelling for the following requirement of an invoicing application
Requirement: A dashboard to display the following:
- Invoices against delivery method
- Number of Invoices by month
- Total dry Items against delivery method
- Total Chiller Items against delivery method
- Total Number of Invoices by Sales Person
Following dimensions have to be used for each of the below requirements
- Invoices against delivery method – Delivery Methods
- Number of Invoices by month – Calendar
- Total dry Items against delivery method – Delivery Method
- Total Chiller Items against delivery method – Delivery Method
- Total Number of Invoices by Sales Person – Person
The primary keys of all the above mentioned dimensions will be referred by the fact table and will be made a composite primary key.
Following is the final design diagram of the DB structure.
Leave a comment