A
asc4john
I am trying to build a set of tables to allow "types" to be assigned
to specific items in a plant.
The grouping of these items would follow this kind of pattern.
Division - the major craft group dealing with the item, Group - the
craft subgroup, Category - the kind of thing and Type the specific
kind of thing.
There are thousands of different kinds of items but they fall roughly
into this scheme, not prefect but close.
I have look-up tables tblDivision, tblGroup, tblCategory and tblType.
I have tried several different arrangements using these tables but
none seem to be satisfactory. What I need is some ideas on how this
kind of thing is implemented. The one I think would work best is:
tblGroup with a DivisionID as a foreign key, tblCategory with GroupID,
tblType with CategoryID. The specific item would then have TypeID as
a field. I have tried using all four IDs in the specific item table
but have found no way to "constrain" the look-ups, i.e. I pick a
Division but should only be able to pick certian Groups and then only
certian Categories and so on .
to specific items in a plant.
The grouping of these items would follow this kind of pattern.
Division - the major craft group dealing with the item, Group - the
craft subgroup, Category - the kind of thing and Type the specific
kind of thing.
There are thousands of different kinds of items but they fall roughly
into this scheme, not prefect but close.
I have look-up tables tblDivision, tblGroup, tblCategory and tblType.
I have tried several different arrangements using these tables but
none seem to be satisfactory. What I need is some ideas on how this
kind of thing is implemented. The one I think would work best is:
tblGroup with a DivisionID as a foreign key, tblCategory with GroupID,
tblType with CategoryID. The specific item would then have TypeID as
a field. I have tried using all four IDs in the specific item table
but have found no way to "constrain" the look-ups, i.e. I pick a
Division but should only be able to pick certian Groups and then only
certian Categories and so on .