OK, I have two tables
and vw_sft_week has data that looks like this:
Each row in the other table has a date, and I've been asked to summarise the data into groups of these weeks.
Right now, I'm not sure I know where to start. If anyone can point me at a cunning plan I'd be hugely grateful.
Thanks,
Fee
The question should be [red]Is it worth trying to do?[/red] not [blue] Can it be done?[/blue]
Code:
SQL>desc oilatum_outlet
Name Null? Type
------------------------------- ------------------------
SOURCE VARCHAR2(6)
ONEKEY_PHARMACY_CODE NUMBER
RXDATE DATE
GSU NUMBER
BRAND VARCHAR2(20)
PACK VARCHAR2(50)
COUNTING_UNITS NUMBER
PACK_UNITS NUMBER
DTE_LD DATE
SQL>desc vw_stf_week
Name Null? Type
-------------------- -------- -------------
ST_WEEK DATE
END_WEEK DATE
Code:
ST_WEEK END_WEEK
--------- ---------
23-AUG-07 29-AUG-07
30-AUG-07 05-SEP-07
06-SEP-07 12-SEP-07
13-SEP-07 19-SEP-07
20-SEP-07 26-SEP-07
27-SEP-07 03-OCT-07
04-OCT-07 10-OCT-07
11-OCT-07 17-OCT-07
18-OCT-07 24-OCT-07
25-OCT-07 31-OCT-07
Each row in the other table has a date, and I've been asked to summarise the data into groups of these weeks.
Right now, I'm not sure I know where to start. If anyone can point me at a cunning plan I'd be hugely grateful.
Thanks,
Fee
The question should be [red]Is it worth trying to do?[/red] not [blue] Can it be done?[/blue]