K
kghays
I need a query that automatically selects a work order billing cost from a
table of various billing costs. The selection depends on the date the work
order was issued. The table of billing costs contains an effective beginning
date and ending date for each cost. For example: a billing cost of $54.00
became effective 11/1/2008 and ended 1/31/2009 when a new cost of $55.50
became effective. I want the query to match the $54.00 billing cost with all
work orders dated between 11/1/2008 and 1/31/2009 and then match the $55.50
cost with all work orders dated after 1/31/2009.
table of various billing costs. The selection depends on the date the work
order was issued. The table of billing costs contains an effective beginning
date and ending date for each cost. For example: a billing cost of $54.00
became effective 11/1/2008 and ended 1/31/2009 when a new cost of $55.50
became effective. I want the query to match the $54.00 billing cost with all
work orders dated between 11/1/2008 and 1/31/2009 and then match the $55.50
cost with all work orders dated after 1/31/2009.