I am literally at the very beginning of my database planning. As a result of another thread I got turned onto an article with some interesting ideasfor database structure so I decided I am going to use at least part of it.
So, to have less tables, all customers, vendors, contacts and anoth OTHER contacts are called a PARTY. So, the first table looks something like this:
NOTE: This is just the start of the table. There will no doubt be more fields Added!
PKPartyID (PK for Primary Key)
NameFunctionID (Customer, Vendor, Contractor, Contact, etc...)
FirstUsedDate
LastUsedDate
Surname
RestOfName
Salutation
IsActive
The plan is that absolutely EVERYTHING else branches off of this table ....
QUESTION:
For extended details they will no doubt be much different for individuals vs vendors vs contacts.
Let me be clear, by extended details, I am NOT talking about address, phone, emails, etc...
I am talking about everything other than all of that which is specific to each tpe of party ..
So, what is the best way to hand the extended details for each party as far as table structure?
So, to have less tables, all customers, vendors, contacts and anoth OTHER contacts are called a PARTY. So, the first table looks something like this:
NOTE: This is just the start of the table. There will no doubt be more fields Added!
PKPartyID (PK for Primary Key)
NameFunctionID (Customer, Vendor, Contractor, Contact, etc...)
FirstUsedDate
LastUsedDate
Surname
RestOfName
Salutation
IsActive
The plan is that absolutely EVERYTHING else branches off of this table ....
QUESTION:
For extended details they will no doubt be much different for individuals vs vendors vs contacts.
Let me be clear, by extended details, I am NOT talking about address, phone, emails, etc...
I am talking about everything other than all of that which is specific to each tpe of party ..
So, what is the best way to hand the extended details for each party as far as table structure?