Steepleboy04
Registered User.
- Local time
- Today, 02:45
- Joined
- Aug 3, 2006
- Messages
- 11
I want to create a database that stores a customer's history of problems with a specific product on a particular machine. I think I have correctly created all the tables I need with their respective primary key.
Please note the TBLJobRegister table at the bottom of this post. This was going to be the table that links all these tables together. Is this design incorrect?
Here are my current tables and their fields:
TBLCustomer
-CustomerCode (primary key), name, address, city, state, country, phone no
TBLProblem
-problemID(primary key), description, comment
TBLSolution
-solutionID(primary key), description, comment
TBLMachine
-MachineID(primary key), description, comment
TBLProduct
-ProductID(primary key), product type, description
TBLMachineOperator
-OperatorID(primary key), firstname, lastname
TBLJobRegister
{fk = foreign key}
-JobID(primary key), Date, CustomerCode(fk), MachineID(fk), OperatorID(fk), ProductID(fk), ProblemID(fk), SolutionID(fk)
Can I have this many foreign keys in one table???
Please note the TBLJobRegister table at the bottom of this post. This was going to be the table that links all these tables together. Is this design incorrect?
Here are my current tables and their fields:
TBLCustomer
-CustomerCode (primary key), name, address, city, state, country, phone no
TBLProblem
-problemID(primary key), description, comment
TBLSolution
-solutionID(primary key), description, comment
TBLMachine
-MachineID(primary key), description, comment
TBLProduct
-ProductID(primary key), product type, description
TBLMachineOperator
-OperatorID(primary key), firstname, lastname
TBLJobRegister
{fk = foreign key}
-JobID(primary key), Date, CustomerCode(fk), MachineID(fk), OperatorID(fk), ProductID(fk), ProblemID(fk), SolutionID(fk)
Can I have this many foreign keys in one table???