I have a table with the following records:
ID Begindate Enddate Amount
1 1-1-2005 15-9-2005 17
2 16-9-2005 31-12-2005 7
I need a table like this:
ID Month Amount
1 1 2
1 2 2
...
1 9 1
2 9 1
2 10 2
2 11 2
2 12 2
Is there a script possible to convert the records with a begin and enddate to a table with a record for each month?
ID Begindate Enddate Amount
1 1-1-2005 15-9-2005 17
2 16-9-2005 31-12-2005 7
I need a table like this:
ID Month Amount
1 1 2
1 2 2
...
1 9 1
2 9 1
2 10 2
2 11 2
2 12 2
Is there a script possible to convert the records with a begin and enddate to a table with a record for each month?