ShovelinFishHeads
Registered User.
- Local time
- Today, 05:10
- Joined
- Aug 4, 2016
- Messages
- 57
Some conceptual questions regarding db design similar to Northwind
I am currently working on designing a db that requires tables similar to Northwind for Suppliers, Products, Orders, and Customers; except that in my case the tables are: Suppliers, Work Description, Orders, and Contractors. Where I would like to depart from the Northwind model (or would need to depart from the Northwind model) is that I would like to have PK indexes for these four tables that all "autonumber"; And, my Contractors table has to have lots of fields with one to many relationships for Employees, equipment selection, and more which is very much unlike Northwind's Customers table.
I plan to use one query that joins the Suppliers and Work Description tables to drive the top half of an "Order" form while the bottom half is a subform that is driven by a query that joins the Orders table and the Contractors table. Link Master Fields would be WorkDescriptionID (PK of the Work Description table) and Link Child Fields would be WorkDescriptionID (FK in the Orders table). Doing this provides a way of having the necessary Supplier and Work Description info on the form along with the Order and Contractor info also on the same form. Making the Order form work this way enables the user to match Work Description requirements with Contractor skills, abilities, Licenses, equipment, and other contractor resources.
The issue that I am struggling with the most is whether or not an Orders table that is joined to the Contractors table could have a functioning Autonumber PK because the Contractors table "has to have" duplicate PK numbers in it due to multiple Employees, multiple Equipment resources, multiple Licenses etc. Doesn't that make the Autonumber process in the Orders table impossible? If it is impossible, how could I work around that?
One solution I thought about is using a "Prequery" between the contractors table and the query that joins the Contractors table with the Orders table. The "Prequery" only pulls a few basic pieces of ID info from Contractors table so it has no duplication of PK numbers. This strategy creates another problem, however, which is: how do I join all of the other contractor info to the order form and make it a part of the order?
Any and all help is appreciated. Thanks everyone
I am currently working on designing a db that requires tables similar to Northwind for Suppliers, Products, Orders, and Customers; except that in my case the tables are: Suppliers, Work Description, Orders, and Contractors. Where I would like to depart from the Northwind model (or would need to depart from the Northwind model) is that I would like to have PK indexes for these four tables that all "autonumber"; And, my Contractors table has to have lots of fields with one to many relationships for Employees, equipment selection, and more which is very much unlike Northwind's Customers table.
I plan to use one query that joins the Suppliers and Work Description tables to drive the top half of an "Order" form while the bottom half is a subform that is driven by a query that joins the Orders table and the Contractors table. Link Master Fields would be WorkDescriptionID (PK of the Work Description table) and Link Child Fields would be WorkDescriptionID (FK in the Orders table). Doing this provides a way of having the necessary Supplier and Work Description info on the form along with the Order and Contractor info also on the same form. Making the Order form work this way enables the user to match Work Description requirements with Contractor skills, abilities, Licenses, equipment, and other contractor resources.
The issue that I am struggling with the most is whether or not an Orders table that is joined to the Contractors table could have a functioning Autonumber PK because the Contractors table "has to have" duplicate PK numbers in it due to multiple Employees, multiple Equipment resources, multiple Licenses etc. Doesn't that make the Autonumber process in the Orders table impossible? If it is impossible, how could I work around that?
One solution I thought about is using a "Prequery" between the contractors table and the query that joins the Contractors table with the Orders table. The "Prequery" only pulls a few basic pieces of ID info from Contractors table so it has no duplication of PK numbers. This strategy creates another problem, however, which is: how do I join all of the other contractor info to the order form and make it a part of the order?
Any and all help is appreciated. Thanks everyone