F
Frank Martin
Thank you for the replies.
With your advice we have altered the structure to separate the address types
and the name types by adding another table called tblNAMETYPE, so the system
now involves four tables, which are shown below:-
tblNAMETYPE
NameTypeID (pK)
Customer
Supplier
Consultant
Personal
Representative
Contractor
etc
|
|one
|
|many
|
tblNAME
NameID (pK)
NameTypeID (fK)
(details)
|
|one
|
|many
|
tblADDRESSES
AddressID (pK)
NameID (fK)
AddrTypeID (fK)
(details)
|
|many
|
|one
|
tblADDRTYPE
AddrTypeID (pK)
HeadOffice
Account
Site
Freight
DepotFOB
Residential
etc.
As suggested we thought of boolean switches to differentiate between
'customer' & 'supplier' in the tblNAMES, but another table 'tblNAMETYPE'
will allow easier addition of new categories later on.
Also as suggested we have included an 'AddressID' in tblADDRESSES which
might give flexibility in future designs.
Please advise if there are any mistakes in the design above.
Kind regards and thanks, Frank Martin
With your advice we have altered the structure to separate the address types
and the name types by adding another table called tblNAMETYPE, so the system
now involves four tables, which are shown below:-
tblNAMETYPE
NameTypeID (pK)
Customer
Supplier
Consultant
Personal
Representative
Contractor
etc
|
|one
|
|many
|
tblNAME
NameID (pK)
NameTypeID (fK)
(details)
|
|one
|
|many
|
tblADDRESSES
AddressID (pK)
NameID (fK)
AddrTypeID (fK)
(details)
|
|many
|
|one
|
tblADDRTYPE
AddrTypeID (pK)
HeadOffice
Account
Site
Freight
DepotFOB
Residential
etc.
As suggested we thought of boolean switches to differentiate between
'customer' & 'supplier' in the tblNAMES, but another table 'tblNAMETYPE'
will allow easier addition of new categories later on.
Also as suggested we have included an 'AddressID' in tblADDRESSES which
might give flexibility in future designs.
Please advise if there are any mistakes in the design above.
Kind regards and thanks, Frank Martin