473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Query shows new data in a table regardless of date limit

I am not familiar with programming languages. I use Access because it
is simple to construct queries. PROBLEM: In a database used to
calculate employee payslips everything went smoothly on both the
current data and the accumulated total until an employee was given a
raise. The raise is now being used to to calculate the year to date
amount recieved even though I thought I had limited it in the query to
after the date of raise. I am sure someone has solved this problem and
would appreciate learning how to do it myself. Thank you in advance
for your consideration.

Mar 14 '06 #1
2 1205
rf********@softhome.net wrote:
I am not familiar with programming languages. I use Access because it
is simple to construct queries. PROBLEM: In a database used to
calculate employee payslips everything went smoothly on both the
current data and the accumulated total until an employee was given a
raise. The raise is now being used to to calculate the year to date
amount recieved even though I thought I had limited it in the query to
after the date of raise. I am sure someone has solved this problem and
would appreciate learning how to do it myself. Thank you in advance
for your consideration.


Common normalization practices dictate "never store data that can be
computed". IMO there are times for exceptions to that rule. Payroll,
for the situation that you have described, is one of those situations.
Pay rates will change, there will often be exceptions, for bonuses,
leave of absence, etc. Another example would be invoicing. Prices
change, discount rates and so on can change.

For payroll, my preference is to store the actual pay data in another
table, separate from the employee table. YTD gross can be easily summed
from that table, and not be affected by changes in pay rates.

HTH

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
Mar 14 '06 #2
Thank you Randy. I needed someone to confirm my suspicion that I
needed to use a table. I like your idea of a separate table. Regards
Roy

Mar 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Laphan | last post by:
Hi All Sorry for the spare info. It wasn't because I didn't want to display it. I just didn't know how to get the data that you needed. I think I've got it now so please note the following: ...
5
by: Andy Davis | last post by:
I have a two tables, Users and Requests, the latter which displays the daily log on's of 20 users. Both tables are related by a one-to-many relationship in the Requests table via the UserId field....
8
by: Maxi | last post by:
There is a lotto system which picks 21 numbers every day out of 80 numbers. I have a table (name:Lotto) with 22 fields (name:Date,P1,P2....P21) Here is the structure and sample data: ...
5
by: Wired Hosting News | last post by:
I tried to be breif and give a scenario so as not to be overlooked because it was soooo long. Let me give you real world. I am a manufacturer of goods and produce 11 items that are distributed...
5
by: Merennulli | last post by:
To start with, I'll give a simplified overview of my data. BaseRecord (4mil rows, 25k in each Region) ID | Name | Region | etc OtherData (7.5mil rows, 1 or 2 per ID) ID | Type(1/2) | Data ...
1
osward
by: osward | last post by:
Hi everyone, Background 1. I have a table that consits 400+ rows of data and is growing by day. The table already has paging links at the bottom but I restricted to display rows of data only >=...
15
by: Widge | last post by:
Hi, I wondered if you could help me with an issue I'm having. Currently I have a rebate calculation that is running off two tables: 1) A list of suppliers and the rebate %ages relevant to them...
8
by: Paul H | last post by:
I want to base a form on a crosstab query. The query shows statistics for a user defined period. The column headings will look something like this: ClientID Month01 Month02 Month03 etc.. ...
2
by: pedalpete | last post by:
Hi MySQL masters, I've got a bit of an issue here I'm hoping somebody will be able to help me with. I have a large DB (1 million plus rows) and need to do a query with dual 'order by' AND...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.