RainLover
VIP From a land downunder
- Local time
- Today, 16:27
- Joined
- Jan 5, 2009
- Messages
- 5,031
I would think he would have a Table that describes the Car.
The Primary Key would be Autonumber and Named something like VehicleIdentityPK
He would list all those Items that depend on the Primary Key.
Namely RegoNumber, ChassisNumber and EngineNumber. All of these Items depend on the Primary Key. That is they help to identify the Vehicle. Other things could be Make and Model.
He would then have a Table to handle the Service.
tblService
ServicePK Autonumber
VehicleIdentityFK as Long
DateOfService
Mechanic
Comments etc.
All these depend on the Primary Key which is the Service.
This Table would have a One to Many Relationship with tblVehicleIdentity
One Vehicle could have many Services
A Third Table would be tblServiceDetails
ServiceDetailsPK as Autonumber
ServiceFK as Long
Item
Comments
All these depend on the Primary Key which is the ServiceDetails.
This Table would have a One to Many Relationship with tblService
One Service could have many Service Items
There is much more that could be added. Namely
Owner Details which could easily be broken down into three tables.
You could have two Tables for the service. One for the Labour and another for the Parts
In this situation I would do ALL of the above and most likely more.
In closing I suggest that the Normalisation of your Database is far more complicated than you realise. It is a big job that you will have to do yourself.
You have reviewed Normalisation. It would do you good to read someone else’s perspective.
The Primary Key would be Autonumber and Named something like VehicleIdentityPK
He would list all those Items that depend on the Primary Key.
Namely RegoNumber, ChassisNumber and EngineNumber. All of these Items depend on the Primary Key. That is they help to identify the Vehicle. Other things could be Make and Model.
He would then have a Table to handle the Service.
tblService
ServicePK Autonumber
VehicleIdentityFK as Long
DateOfService
Mechanic
Comments etc.
All these depend on the Primary Key which is the Service.
This Table would have a One to Many Relationship with tblVehicleIdentity
One Vehicle could have many Services
A Third Table would be tblServiceDetails
ServiceDetailsPK as Autonumber
ServiceFK as Long
Item
Comments
All these depend on the Primary Key which is the ServiceDetails.
This Table would have a One to Many Relationship with tblService
One Service could have many Service Items
There is much more that could be added. Namely
Owner Details which could easily be broken down into three tables.
You could have two Tables for the service. One for the Labour and another for the Parts
In this situation I would do ALL of the above and most likely more.
In closing I suggest that the Normalisation of your Database is far more complicated than you realise. It is a big job that you will have to do yourself.
You have reviewed Normalisation. It would do you good to read someone else’s perspective.
Last edited: