I have a table I have inherited similar in structure to the following
Columns
ID Varchar2(20)
lower_timevalue 1 NUMBER
lower_timevalue 2 NUMBER
........
lower_timevalue 24 NUMBER
middle_timevalue 1 NUMBER
middle_timevalue 2 NUMBER
........
middle_timevalue 24 NUMBER
upper_timevalue 1 NUMBER
upper_timevalue 2 NUMBER
........
upper_timevalue 24 NUMBER
I would like to convert the table to the following format
ID VARCHAR2(20)
time DATE
upper NUMBER
lower NUMBER
middle NUMBER
I have come across this sort of problem in the past and can't remember the elegant solution to move all the records in a relatively easy transition!
If any body can point me in the right direction I would be very grateful!
Gareth
Columns
ID Varchar2(20)
lower_timevalue 1 NUMBER
lower_timevalue 2 NUMBER
........
lower_timevalue 24 NUMBER
middle_timevalue 1 NUMBER
middle_timevalue 2 NUMBER
........
middle_timevalue 24 NUMBER
upper_timevalue 1 NUMBER
upper_timevalue 2 NUMBER
........
upper_timevalue 24 NUMBER
I would like to convert the table to the following format
ID VARCHAR2(20)
time DATE
upper NUMBER
lower NUMBER
middle NUMBER
I have come across this sort of problem in the past and can't remember the elegant solution to move all the records in a relatively easy transition!
If any body can point me in the right direction I would be very grateful!
Gareth