i have a table with 10 columns. i want to convert this to 2 columns using unpivot. below are my tables. i tried with clause(to get aggrgate columns from all_tab_columns), unpivot but giving error simple column error or in clause error.COuld someone suggest where i am getting error.
input table
KEY_COL COL_A COL_B COL_C..till COL_J
1 a,b,c,d,e,f,g,h,i,j
2 x,y,a,s,f,g,e,r,g,d
output table
KEY_COL COLM VALUE
1 COL_A a
1 COL_B b
.
.
.
1 COL_J j
2 COL_A x
2 COL_B y
.
.
.
2 COL_J d
Any idea how to do this?
..._tab_columnsview(s) that I lately realised.