I have a table with 2 columns:
Column1 Column2
----- ------------
Aa TextA
Bb TextB
Cc TextC
And I must transform this to an new table like this:
Aa Bb Cc
----- ----- -----
TextA TextB TextC
The values of column1 must be the columnheader in the new table
The select statement must be so dynamic that when there is a new record in the original table there must be a new column in the new table.
Aa Bb Cc Dd
----- ----- ----- ------
TextA TextB TextC TextD
How can I solve this problem?
Column1 Column2
----- ------------
Aa TextA
Bb TextB
Cc TextC
And I must transform this to an new table like this:
Aa Bb Cc
----- ----- -----
TextA TextB TextC
The values of column1 must be the columnheader in the new table
The select statement must be so dynamic that when there is a new record in the original table there must be a new column in the new table.
Aa Bb Cc Dd
----- ----- ----- ------
TextA TextB TextC TextD
How can I solve this problem?