R
Ron A.
I am hoping someone can look at my tables and relationships for a vehicle
parts database I am woking on and give me some suggestions. I posted before
on the subject and got some great help, but I just seem to be stuck. I want
to create a quick reference tool for mechanics that will allow them to look
up parts in a database so they do not have to repeat the time consuming
process of parts research everytime they need a part for a vehicle. Some of
the issues I have run into during this is that I have many vehicles with the
same model number that have different manufacturers and many suppliers for
the same parts. Here is what I have so far:
[PartsTbl]
PartID <--primary key and has one-to-many with [PartsForRegNo]
[PartsForModels]
PartName
CategoryID <--foreign key from [CategoyTbl] with one-to-many
AuxiliaryEnginePart
PartDescription
[RegNoTbl]
RegNoID <--primary key and has one-to-many with [PartsForRegNoTbl]
RegNo
ModelID <--foreign key from [ModelTbl] with one-to-many
VIN
BodyStyle
EngineModel
EngineSerial
AuxEngineSerial
TransModel
TransSerial
[ModelTbl]
ModelID <--primary key and one-to-many with [RegNoTbl][PartsForModelsTbl]
ModelYear
Make
ModelName
MFGID <--foreign key from [MFGTbl] and has one-to-many with [MFGTbl]
[SuppliersTbl]
SupplierID <--primary key and has one-to-many with [PartsSuppliersTbl]
CompanyName
ContactName
ContactTitle
Address
City
State
Zipcode
Phone
Fax
HomPage
[CategoryTbl]
CategoryID <--primary key
CategoryName
[MFGTbl]
MFGID <--primary key
MFGName
[PartsForModelsTbl] <--junction tbl
PartsModelID <--primary key
PartID <--foreign key
ModelID <--foreign key
[PartsForRegNoTbl] <--junction tbl
PartsRegNoID <--primary key
PartID <--foreign key
RegNoID <--foreign key
[PartsSupplierTbl] <--junction tbl
PartsSupplierID <--primary key
SupplierID <--foreign key
PartID <--foreign key
All relationships have referential integrity selected and join type #2
except for the [CategoryTbl] & [MFGTbl]. They have join type #3 and no
referential integrity.
parts database I am woking on and give me some suggestions. I posted before
on the subject and got some great help, but I just seem to be stuck. I want
to create a quick reference tool for mechanics that will allow them to look
up parts in a database so they do not have to repeat the time consuming
process of parts research everytime they need a part for a vehicle. Some of
the issues I have run into during this is that I have many vehicles with the
same model number that have different manufacturers and many suppliers for
the same parts. Here is what I have so far:
[PartsTbl]
PartID <--primary key and has one-to-many with [PartsForRegNo]
[PartsForModels]
PartName
CategoryID <--foreign key from [CategoyTbl] with one-to-many
AuxiliaryEnginePart
PartDescription
[RegNoTbl]
RegNoID <--primary key and has one-to-many with [PartsForRegNoTbl]
RegNo
ModelID <--foreign key from [ModelTbl] with one-to-many
VIN
BodyStyle
EngineModel
EngineSerial
AuxEngineSerial
TransModel
TransSerial
[ModelTbl]
ModelID <--primary key and one-to-many with [RegNoTbl][PartsForModelsTbl]
ModelYear
Make
ModelName
MFGID <--foreign key from [MFGTbl] and has one-to-many with [MFGTbl]
[SuppliersTbl]
SupplierID <--primary key and has one-to-many with [PartsSuppliersTbl]
CompanyName
ContactName
ContactTitle
Address
City
State
Zipcode
Phone
Fax
HomPage
[CategoryTbl]
CategoryID <--primary key
CategoryName
[MFGTbl]
MFGID <--primary key
MFGName
[PartsForModelsTbl] <--junction tbl
PartsModelID <--primary key
PartID <--foreign key
ModelID <--foreign key
[PartsForRegNoTbl] <--junction tbl
PartsRegNoID <--primary key
PartID <--foreign key
RegNoID <--foreign key
[PartsSupplierTbl] <--junction tbl
PartsSupplierID <--primary key
SupplierID <--foreign key
PartID <--foreign key
All relationships have referential integrity selected and join type #2
except for the [CategoryTbl] & [MFGTbl]. They have join type #3 and no
referential integrity.