G
Guest
Hello everyone,
I have a perplexing puzzle that I cannot figure out. I have a report that
shows payroll for a date period. I have created a table that holds all the
payroll items and their effective date. I am trying to design a query that
will be able to return the proper amount for the given date period.
Here is the payroll table
pay date
1000 06/01/2005
1200 07/15/2005
so lets say my report was from 06/15/2005 to 06/30/2005
I want to return 1000 (there are 2 results greater than the effective dates)
however, what if the report date is greater thatn the pay dates I have
so lets say my report was from 08/2005 to 08/30/2005
I want to return 1200 (there are 2 results less than the effective dates)
I am really confused..whew
Let me know if I have made myself clear
I have a perplexing puzzle that I cannot figure out. I have a report that
shows payroll for a date period. I have created a table that holds all the
payroll items and their effective date. I am trying to design a query that
will be able to return the proper amount for the given date period.
Here is the payroll table
pay date
1000 06/01/2005
1200 07/15/2005
so lets say my report was from 06/15/2005 to 06/30/2005
I want to return 1000 (there are 2 results greater than the effective dates)
however, what if the report date is greater thatn the pay dates I have
so lets say my report was from 08/2005 to 08/30/2005
I want to return 1200 (there are 2 results less than the effective dates)
I am really confused..whew
Let me know if I have made myself clear