For anyone else out there, who may not have a weekend life.
I am trying to redesign a db, and improve the design, and am at a impasse. Need fresh ideas.
I have table Companies, a table of all available Companies
tblOrg
lngOrgId
OrgName
I have Addresses, a table of all available addresses.
tblAddesses
lngAddressID
StreetAddress
POBoxAddress
City
State
Zip
I have table People, a table of all avaiable people.
tblPeople
lngPeopleId
FirstName
LastName
Title
Suffix
Now here is where I am running into problems getting it straight and maintaing good design.
Companies can have more than one Address of different Address type.
thus
tblOrgAddress
lngOrgAddressID
lngOrgID
lngAddressID
AddressType
Works beautiful
People however, may work for one or more companies, or no company, AND may also have a personal address.
Right now i have:
tblOrgContacts
lngOrgId
lngPeopleID
lngAddressID
Phone
Fax
Email
Pager
But I need something like, a person may or may not have a company, and may or may not have EITHER a company address or a personal address.
There is more but this is the basic layout.
vree
"For a succesful technology, reality must take precedence over public
relations, for nature will not be fooled."
R.Feynman
I am trying to redesign a db, and improve the design, and am at a impasse. Need fresh ideas.
I have table Companies, a table of all available Companies
tblOrg
lngOrgId
OrgName
I have Addresses, a table of all available addresses.
tblAddesses
lngAddressID
StreetAddress
POBoxAddress
City
State
Zip
I have table People, a table of all avaiable people.
tblPeople
lngPeopleId
FirstName
LastName
Title
Suffix
Now here is where I am running into problems getting it straight and maintaing good design.
Companies can have more than one Address of different Address type.
thus
tblOrgAddress
lngOrgAddressID
lngOrgID
lngAddressID
AddressType
Works beautiful
People however, may work for one or more companies, or no company, AND may also have a personal address.
Right now i have:
tblOrgContacts
lngOrgId
lngPeopleID
lngAddressID
Phone
Fax
Pager
But I need something like, a person may or may not have a company, and may or may not have EITHER a company address or a personal address.
There is more but this is the basic layout.
vree
"For a succesful technology, reality must take precedence over public
relations, for nature will not be fooled."
R.Feynman