Ron said:
Here are some tables I came up with. Do these seem workable?
I have some suggestions...
Vehicle RegNo tbl:
RegNo - primary Key
Make/ModelID
Remarks
Since each record in the above Table is evidently intended to describe a
specific vehicle, you might call the Table [Vehicle]. Even though the
primary key matches a registration number (I assume), I think I'd call
that field [VehicleID] both here (primary key) and in other Tables that
refer to it (foreign keys in those Tables), to make it more obvious
where the definition of the key is located ([Vehicle] Table).
The foreign key [Make/ModelID] here suggests that several [Vehicle
RegNo] vehicles belong to the same [Models], and that seems correct.
Models tbl:
Make/ModelID - primary key
Make/Model
Manufacturer
I'd call the primary key [ModelsID], and I'd probably split the second
field into two parts, [Make] and [Model].
Categories tbl:
CategoryID - primary key
Category Name
Description
It's unclear to me what you'd use this for; it helps to use suggestive
names. If it's obvious to you & others what a "category" is, then I
have no objection to this name. But it wouldn't hurt to document
somewhere what it is, maybe with examples of field values, such as
"fasteners".
Parts tbl:
PartID - primary key
Part Name
Part Description
CategoryID
SupplierID
PartNo
NSN
Make/ModelID
UnitPrice
Remarks
This looks good -- a [Categories] can contain several [Parts]; a
[Suppliers] supplies several [Parts]; and a [Models] includes several
[Parts].
Suppliers tbl:
SupplierID - primary key
CompanyName
ContactName
ContactTitle
Address
City
Region
PostalCode
Phone
Fax
HomePage
Thank for any assistance.
I was looking mainly at the links among your Tables. The other fields
you may or may not need, depending on what you intend to do with the
database. For example, [Suppliers].[PostalCode] would be useful if you
plan to send letters or packages to a supplier, but maybe not otherwise,
and you don't want to waste energy on maintaining information you don't
plan to use.
-- Vincent Johns <
[email protected]>
Please feel free to quote anything I say here.