Hello everyone!
I am in need of some expert help which I hope members of the forum can provide.
I am currently developing a database that will enable my department to account for tools and test equipment and one of the design criteria is causing me a headache. Let me explain:
I have a table listing all tools as individual items, each with a unique ID.
Criteria:
1. Each tool can be accounted for as an individual item. e.g. Screwdriver A.
2. Each individual tool may (or may not) be part of a set of tools, the parent tool set being listed as an individual tool in the table. e.g. Screwdriver A, part of Screwdriver Set, Cross Point.
3. Each individual tool may (or may not) be part of many sets. e.g. Screwdriver A, part of Screwdriver Set, Cross Point and Screwdriver Set, Various.
4. Each set can be part of other sets. e.g. Screwdriver Set, Cross Point can be part of Toolbox X, Y and Z (Toolbox X, Y and Z also being listed as an individual tools as they are different)
I have tried using a self join on another field but this fails criteria’s 3 and 4.
I have also tried using an additional table (tbl Sets) with Parent and Child ID but then I will have to include every single tool (that is not accounted for as part of a set) in that table. In other words ToolID = 1, ParentID = 1, Child = 1, and this would amount to several thousand additional records.
I believe that the way forward is probably using an additional table (tbl_Sets), but is this possible to create this multi relationship connection with, I believe, a left join?
Any help would be really appreciated, especially when it doesn’t make my head explode.
Many thanks in advance.
I am in need of some expert help which I hope members of the forum can provide.
I am currently developing a database that will enable my department to account for tools and test equipment and one of the design criteria is causing me a headache. Let me explain:
I have a table listing all tools as individual items, each with a unique ID.
Criteria:
1. Each tool can be accounted for as an individual item. e.g. Screwdriver A.
2. Each individual tool may (or may not) be part of a set of tools, the parent tool set being listed as an individual tool in the table. e.g. Screwdriver A, part of Screwdriver Set, Cross Point.
3. Each individual tool may (or may not) be part of many sets. e.g. Screwdriver A, part of Screwdriver Set, Cross Point and Screwdriver Set, Various.
4. Each set can be part of other sets. e.g. Screwdriver Set, Cross Point can be part of Toolbox X, Y and Z (Toolbox X, Y and Z also being listed as an individual tools as they are different)
I have tried using a self join on another field but this fails criteria’s 3 and 4.
I have also tried using an additional table (tbl Sets) with Parent and Child ID but then I will have to include every single tool (that is not accounted for as part of a set) in that table. In other words ToolID = 1, ParentID = 1, Child = 1, and this would amount to several thousand additional records.
I believe that the way forward is probably using an additional table (tbl_Sets), but is this possible to create this multi relationship connection with, I believe, a left join?
Any help would be really appreciated, especially when it doesn’t make my head explode.
Many thanks in advance.