Greetings,
As the title suggest i'm attempting to extract multiple records from a single record. I have a set of data with a start and end date, and for each inclusive day within that period i would like a copy of the original record, with the exception of a single date file containing the inclusive date.
For example:
I'm using Access 2000, and would prefer to have the answer in a single SQL statement if possible.
Many thanks.
Flopper
As the title suggest i'm attempting to extract multiple records from a single record. I have a set of data with a start and end date, and for each inclusive day within that period i would like a copy of the original record, with the exception of a single date file containing the inclusive date.
For example:
Code:
Original data:
[b]Ref DateA DateB Code Location[/b]
12345 01-Jan 06-Jan Sev1 Liverpool
23456 16-Feb 19-Feb Sev2 Manchester
34567 12-Mar 12-Mar Sev2 London
45678 13-Feb 14-Feb Sev3 Birmingham
56789 27-Apr 29-Apr Sev2 Liverpool
Would become:
[b]Ref Date Code Location[/b]
12345 01-Jan Sev1 Liverpool
12345 02-Jan Sev1 Liverpool
12345 03-Jan Sev1 Liverpool
12345 04-Jan Sev1 Liverpool
12345 05-Jan Sev1 Liverpool
12345 06-Jan Sev1 Liverpool
23456 16-Feb Sev2 Manchester
23456 17-Feb Sev2 Manchester
23456 18-Feb Sev2 Manchester
23456 19-Feb Sev2 Manchester
34567 12-Mar Sev2 London
45678 13-Feb Sev3 Birmingham
45678 14-Feb Sev3 Birmingham
56789 27-Apr Sev2 Liverpool
56789 28-Apr Sev2 Liverpool
56789 29-Apr Sev2 Liverpool
I'm using Access 2000, and would prefer to have the answer in a single SQL statement if possible.
Many thanks.
Flopper