G
Guest
I have a table with 3 fields:
Amount
Start Date
End Date
I want to apply the Amount to each month based on the Start Date and End
Date. I was thinking there could be a query written that would:
- Set up the columns (months)
- Analyse the start and end dates
- Populate the amount in the columns where start and end meet the criteria
The end result would be a "table" of results
Example:
Amount Start End Jan-05 Feb-05 Mar-05 Apr-05
$100 Feb-05 Mar-05 $100 $100
$200 Jan-05 Apr-05 $200 $200 $200
$200
$150 Mar-05 Apr-05 $150
$150
so on, and so on....
Sorry for the re-post....
Amount
Start Date
End Date
I want to apply the Amount to each month based on the Start Date and End
Date. I was thinking there could be a query written that would:
- Set up the columns (months)
- Analyse the start and end dates
- Populate the amount in the columns where start and end meet the criteria
The end result would be a "table" of results
Example:
Amount Start End Jan-05 Feb-05 Mar-05 Apr-05
$100 Feb-05 Mar-05 $100 $100
$200 Jan-05 Apr-05 $200 $200 $200
$200
$150 Mar-05 Apr-05 $150
$150
so on, and so on....
Sorry for the re-post....