A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

What's the best way to design this?



 
 
Thread Tools Display Modes
  #1  
Old December 28th, 2004, 03:49 PM
Access rookie
external usenet poster
 
Posts: n/a
Default 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  
Old December 28th, 2004, 04:08 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

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  
Old December 28th, 2004, 04:19 PM
Access rookie
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 11:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.