The table structure I would create, you will need one more table:
(... = what ever other fields you may need)
(PK = primary Key, FK = foreign key)
licenceNumbersTable
ID (PK, int, autoIncrement)
...
...
CustomersTable
ID (PK, int, autoIncrement)
...
...
MachinesTable
ID (PK, int, autoIncrement)
...
...
CustomerMachinesTable
ID (PK, int, autoIncrement)
MID (FK, int,(machineID))
CID (FK, int,(customerID))
LNID (FK, int,(licenceNumberID))
...
...
This would create a structure for you to put relationships in place. Enterprize manager has a useful graphical tool for this. Create this structure, click on diagrams, add all your tables to the diagram, click hold n drag the primary keys to the relavent forign keys.
Wind is your friend
Matt
|