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  

Any ideas?



 
 
Thread Tools Display Modes
  #1  
Old August 3rd, 2006, 05:06 PM posted to microsoft.public.access.tablesdbdesign
Joe C
external usenet poster
 
Posts: 68
Default Any ideas?

Hello,

I am stuck on a design issue and would like some suggestions please.

I have an employee db. In this db is an employee table that has their
current info... salary, bonuses etc. What would you suggest is a good way to
get a historical system going. For example week 10, person X gets an annual
bonus. Week 19 person Y gets a travel expense.

Any ideas would be appreciated.

Joe C
Big Papi for president
  #2  
Old August 3rd, 2006, 06:59 PM posted to microsoft.public.access.tablesdbdesign
jahoobob via AccessMonster.com
external usenet poster
 
Posts: 228
Default Any ideas?

Two tables, your current employee table with basic info - name, address,
phone, DOB, Date of Hire, etc - and an EmployeeId. and a second table to hold
the historical data that looks something like this:
EmployeeID - FK
Description - salary, bonus, etc.
Amount
EventDate

This table would have a many-to-one relationship with the employee table on
the EmployeeID.

Your data entry form would be a Single based on the employee table and you
would have a subform in that form that is Continuous and based on the new
table. These two tables would be linked by the EmployeeID.
Whenever you entered data in the subform, the EmployeeID (which doesn't need
to be displayed on the subform, will be entered in your new table.
Hope this helps,
Bob

Joe C wrote:
Hello,

I am stuck on a design issue and would like some suggestions please.

I have an employee db. In this db is an employee table that has their
current info... salary, bonuses etc. What would you suggest is a good way to
get a historical system going. For example week 10, person X gets an annual
bonus. Week 19 person Y gets a travel expense.

Any ideas would be appreciated.

Joe C
Big Papi for president


--
Message posted via http://www.accessmonster.com

  #3  
Old August 3rd, 2006, 07:24 PM posted to microsoft.public.access.tablesdbdesign
Joe C
external usenet poster
 
Posts: 68
Default Any ideas?

Jahoobob,

I like it.

I have a large employee base whose salary will not change week to week.. Is
there an easy way to populate the second table?

JC

Papi


"jahoobob via AccessMonster.com" wrote:

Two tables, your current employee table with basic info - name, address,
phone, DOB, Date of Hire, etc - and an EmployeeId. and a second table to hold
the historical data that looks something like this:
EmployeeID - FK
Description - salary, bonus, etc.
Amount
EventDate

This table would have a many-to-one relationship with the employee table on
the EmployeeID.

Your data entry form would be a Single based on the employee table and you
would have a subform in that form that is Continuous and based on the new
table. These two tables would be linked by the EmployeeID.
Whenever you entered data in the subform, the EmployeeID (which doesn't need
to be displayed on the subform, will be entered in your new table.
Hope this helps,
Bob

Joe C wrote:
Hello,

I am stuck on a design issue and would like some suggestions please.

I have an employee db. In this db is an employee table that has their
current info... salary, bonuses etc. What would you suggest is a good way to
get a historical system going. For example week 10, person X gets an annual
bonus. Week 19 person Y gets a travel expense.

Any ideas would be appreciated.

Joe C
Big Papi for president


--
Message posted via http://www.accessmonster.com


  #4  
Old August 3rd, 2006, 10:32 PM posted to microsoft.public.access.tablesdbdesign
jahoobob via AccessMonster.com
external usenet poster
 
Posts: 228
Default Any ideas?

What are your current table's fields that pertain to the data (date, amount,
description, employee identification, etc.) you want to keep in the history
file? Give me this and I can better help you.


Joe C wrote:
Jahoobob,

I like it.

I have a large employee base whose salary will not change week to week.. Is
there an easy way to populate the second table?

JC

Papi

Two tables, your current employee table with basic info - name, address,
phone, DOB, Date of Hire, etc - and an EmployeeId. and a second table to hold

[quoted text clipped - 28 lines]
Joe C
Big Papi for president


--
Message posted via http://www.accessmonster.com

  #5  
Old August 4th, 2006, 12:41 PM posted to microsoft.public.access.tablesdbdesign
Jamie Collins
external usenet poster
 
Posts: 1,705
Default Any ideas?


Joe C wrote:
the historical data [table] looks something like this:
EmployeeID - FK
Description - salary, bonus, etc.
Amount
EventDate

have a large employee base whose salary will not change week to week


I recommend you store salary history (e.g. in a continuum) separate to
one-off events such a bonus; store salary on a weekly basis and you'll
do so redundantly.

Be warned that such tables, called valid-time state tables in the
literature, are very tricky to get right; even writing a primary key
constraint is complex. Here's an example I posted earlier:

http://groups.google.com/group/micro...c3f233ba3336cc

Jamie.

--

 




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 ideas? jules Database Design 1 July 6th, 2005 07:39 PM
Need a ISWorkday Function -- Any Ideas Mark Worksheet Functions 5 March 29th, 2005 01:58 AM
Application Error, no related info found on web any ideas? Des Outlook Express 1 August 27th, 2004 08:29 PM
Do you have any other ideas j hall Publisher 1 June 16th, 2004 06:03 PM
I need help or ideas Nichole Worksheet Functions 2 October 28th, 2003 04:23 PM


All times are GMT +1. The time now is 10:09 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.