I'm on Oracle 10g
Is it possible to use the data within a table to create another table? In other words, instead of using select column1 from table_1 into table_2, is it possible to use the row-contents of column1 to make table_2? I basically need to pivot a column into a new table (standard function in 11g).
A different way of asking: I have a table with a first_name column. I want to make a new table but instead of copying first_name from table_1, I want to have columns called JOHN, MARY, FRED, AUDREY.....ANDREW. I don't know what names are contained in the first_name column, and they will change all the time, so hardcoding isn't an option.
If you follow me.
Is it possible to use the data within a table to create another table? In other words, instead of using select column1 from table_1 into table_2, is it possible to use the row-contents of column1 to make table_2? I basically need to pivot a column into a new table (standard function in 11g).
A different way of asking: I have a table with a first_name column. I want to make a new table but instead of copying first_name from table_1, I want to have columns called JOHN, MARY, FRED, AUDREY.....ANDREW. I don't know what names are contained in the first_name column, and they will change all the time, so hardcoding isn't an option.
If you follow me.