I have just ran some SQL which generates the following results:
Requested Action Code,17,17
Requested Action Code,18,18
Requested Action Code,19,19
Requested Action Code,20,20
Requested Action Code,21,21
Meter Period Number,01,01
Meter Period Number,02,02
Meter Period Number,03,03
Meter Period Number,04,04
Meter Period Number,05,05
Meter Period Number,06,06
Actual/Estimated Indicator,A,A
Actual/Estimated Indicator,C,C
Actual/Estimated Indicator,E,E
Every time the first column changes i want to create a new CSV file containing only the columns 2 and 3. Then naming the new CSV file the value in the first column.
ie: Requested Action Code.csv will contain:
17,17
18,18
19,19
20,20
21,21
Meter Period Number.csv wil contain:
01,01
02,02
03,03
04,04
05,05
06,06
Any help would be appricated, Is this possible?
My original SQL was: (if that helps any?)
select b.item_name||','||+valid_set_value||','||+valid_set_value
from dtc_8_1.valid_set_value a, dtc_8_1.data_item b
WHERE a.item_counter = b.item_counter
I have no idea if this is even possible in Oracle? :O)
Requested Action Code,17,17
Requested Action Code,18,18
Requested Action Code,19,19
Requested Action Code,20,20
Requested Action Code,21,21
Meter Period Number,01,01
Meter Period Number,02,02
Meter Period Number,03,03
Meter Period Number,04,04
Meter Period Number,05,05
Meter Period Number,06,06
Actual/Estimated Indicator,A,A
Actual/Estimated Indicator,C,C
Actual/Estimated Indicator,E,E
Every time the first column changes i want to create a new CSV file containing only the columns 2 and 3. Then naming the new CSV file the value in the first column.
ie: Requested Action Code.csv will contain:
17,17
18,18
19,19
20,20
21,21
Meter Period Number.csv wil contain:
01,01
02,02
03,03
04,04
05,05
06,06
Any help would be appricated, Is this possible?
My original SQL was: (if that helps any?)
select b.item_name||','||+valid_set_value||','||+valid_set_value
from dtc_8_1.valid_set_value a, dtc_8_1.data_item b
WHERE a.item_counter = b.item_counter
I have no idea if this is even possible in Oracle? :O)