F
Frank Martin
We are redesigning the address tables of our Access2000 database so as to
allow consolidation of old individual address tables such as Account
customers, Freight depots, Delivery addresses, Postal Addresses, Pickup
Addresses etc etc into one address system consisting of three new tables.
Also, we want to combine Customers and Suppliers in this one table.
These three tables will be:
tblNAME
NameID pK
(details)
|
| one
|
|
|
|
|many
|
tblADDRESS
NameID fK
TypeID fK
(details)
|
| many
|
|
|
|
|one
|
TblADDRTYPE
TypeID pK
details:-
Account
Freight
Pickup
Personal
Postal
Supplier
SupplierPostal
etc
We think that the tblNAME and the tblADDRTYPE have a many/many relation, and
that the tblADDRESS is a linking table between the two, and that the only
keys required in the tblADDRESS are the NameID and TypeID as composite IDs.
ie there is no need for an "AddressID".
We believe the above system will rationalize the old separate address tables
into one, and also:
1/ Allow to be shown all types of addresses per name
2/ Avoid the need for union queries to compile a customer/supplier
listing.
3/ Allow staff to have their own contact list within the main address
system.
Before we start converting our system, please advise if anybody can see any
mistakes in the above design.
We are still new to this.
Kind regards, Frank
allow consolidation of old individual address tables such as Account
customers, Freight depots, Delivery addresses, Postal Addresses, Pickup
Addresses etc etc into one address system consisting of three new tables.
Also, we want to combine Customers and Suppliers in this one table.
These three tables will be:
tblNAME
NameID pK
(details)
|
| one
|
|
|
|
|many
|
tblADDRESS
NameID fK
TypeID fK
(details)
|
| many
|
|
|
|
|one
|
TblADDRTYPE
TypeID pK
details:-
Account
Freight
Pickup
Personal
Postal
Supplier
SupplierPostal
etc
We think that the tblNAME and the tblADDRTYPE have a many/many relation, and
that the tblADDRESS is a linking table between the two, and that the only
keys required in the tblADDRESS are the NameID and TypeID as composite IDs.
ie there is no need for an "AddressID".
We believe the above system will rationalize the old separate address tables
into one, and also:
1/ Allow to be shown all types of addresses per name
2/ Avoid the need for union queries to compile a customer/supplier
listing.
3/ Allow staff to have their own contact list within the main address
system.
Before we start converting our system, please advise if anybody can see any
mistakes in the above design.
We are still new to this.
Kind regards, Frank