I currently have a report which has data laid out as shown below
part monthend period start end
fred 2004-01 2004-01-1 100 150
fred 2004-01 2004-01-2 150 350
fred 2004-01 2004-01-3 350 250
fred 2004-02 2004-02-1 0 50
fred 2004-02 2004-02-2 50 100
fred 2004-02 2004-02-3 100 150
fred 2004-02 2004-02-4 150 200
The user wants to have the 'start' for the start period and
the 'end' for the last period of each monthend, so the report should look like this:-
part monthend start end
fred 2004-01 100 250
fred 2004-02 0 200
all the data is held in the same table, so no worries about cross table links, etc... any starters for 10 ?
I have tried to use sub-queries but I only return a single value when I use MIN or MAX.. (obviously)
Thanks,
Jim Beck
part monthend period start end
fred 2004-01 2004-01-1 100 150
fred 2004-01 2004-01-2 150 350
fred 2004-01 2004-01-3 350 250
fred 2004-02 2004-02-1 0 50
fred 2004-02 2004-02-2 50 100
fred 2004-02 2004-02-3 100 150
fred 2004-02 2004-02-4 150 200
The user wants to have the 'start' for the start period and
the 'end' for the last period of each monthend, so the report should look like this:-
part monthend start end
fred 2004-01 100 250
fred 2004-02 0 200
all the data is held in the same table, so no worries about cross table links, etc... any starters for 10 ?
I have tried to use sub-queries but I only return a single value when I use MIN or MAX.. (obviously)
Thanks,
Jim Beck