I need to join two tables in a query, MiscCharge Table and the RentalStatus Table. The ID of the Status table is a FPK on the MiscCharge Tabel
The query should take a date range and then filter the results to Status that occur during that time range
START[tab][tab]1/6/13|--------------------------------------------------------------|1/12/13 STOP
1/1/13|--------------|-----------------|1/6/13|-------------------------------------|------------------|1/14/13
1/1/13|--------------|----------------------------------------------------------------|-----------------------------------1/16/2013
1/8/13|------------------------------------------|1/10/13 |
If a status overlaps on either side it would need to cut off the status start date and status end date where they overlap.
The MiscCharge Date also has a bill date that would need to be between the start and stop dates in order to
The query should take a date range and then filter the results to Status that occur during that time range
START[tab][tab]1/6/13|--------------------------------------------------------------|1/12/13 STOP
1/1/13|--------------|-----------------|1/6/13|-------------------------------------|------------------|1/14/13
1/1/13|--------------|----------------------------------------------------------------|-----------------------------------1/16/2013
1/8/13|------------------------------------------|1/10/13 |
If a status overlaps on either side it would need to cut off the status start date and status end date where they overlap.
The MiscCharge Date also has a bill date that would need to be between the start and stop dates in order to