If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
What's the best way to design this?
Hello,
I am desiging a database that will host information about employees. The problem is that there are about 5 different types of employees (hourly paid, etc) and each of them have different information that is stored for them. I am wondering whether to have a huge table to handle the different fields (on average about 25 fields per type) , or have an employee table to host basic info (name, address, phone etc) and then split the employee types into different tables and have a foreign key link to each of the employeetype tables. Is there a better way to do this? Scared of the concept of a 75 field table, John. |
#2
|
|||
|
|||
There will be some fields that are common to all/most of the types, e.g.
Surname, FirstName, BirthDate, Gender, Address, City, Zip, Notes, ... These fields at least belong in the Employee table, with an EmployeeID primary key. Some of the other fields might find into a related table, e.g.: EmployeeTypeID - one of the 5 values; PayRate - currency It may be necessary to have 5 related tables handling these fields if they are radically different, but my guess is that you will be able to shoehorn these various fields into this related table. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Access rookie" wrote in message ... Hello, I am desiging a database that will host information about employees. The problem is that there are about 5 different types of employees (hourly paid, etc) and each of them have different information that is stored for them. I am wondering whether to have a huge table to handle the different fields (on average about 25 fields per type) , or have an employee table to host basic info (name, address, phone etc) and then split the employee types into different tables and have a foreign key link to each of the employeetype tables. Is there a better way to do this? Scared of the concept of a 75 field table, John. |
#3
|
|||
|
|||
Thanks for your help Allen; I will check for all common fields and then get
the related tables set up. Have a Happy New Year. John. "Allen Browne" wrote: There will be some fields that are common to all/most of the types, e.g. Surname, FirstName, BirthDate, Gender, Address, City, Zip, Notes, ... These fields at least belong in the Employee table, with an EmployeeID primary key. Some of the other fields might find into a related table, e.g.: EmployeeTypeID - one of the 5 values; PayRate - currency It may be necessary to have 5 related tables handling these fields if they are radically different, but my guess is that you will be able to shoehorn these various fields into this related table. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Access rookie" wrote in message ... Hello, I am desiging a database that will host information about employees. The problem is that there are about 5 different types of employees (hourly paid, etc) and each of them have different information that is stored for them. I am wondering whether to have a huge table to handle the different fields (on average about 25 fields per type) , or have an employee table to host basic info (name, address, phone etc) and then split the employee types into different tables and have a foreign key link to each of the employeetype tables. Is there a better way to do this? Scared of the concept of a 75 field table, John. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Design Templates don't apply font sizes consistantly | Greg H | Powerpoint | 1 | September 15th, 2004 02:07 PM |
design master problem | J. Vermeer | General Discussion | 0 | September 8th, 2004 03:23 PM |
Action queries changing when reopened in design view | Kendra | Running & Setting Up Queries | 2 | August 31st, 2004 12:34 AM |
Document Starts in Design Mode every time I open it | Colin Higbie | General Discussion | 4 | June 14th, 2004 12:24 PM |
opening a document so it is NOT in design mode | Brad Pears | New Users | 1 | May 3rd, 2004 09:13 PM |