Unknown number of rows to columns
590229Sep 9 2008 — edited Sep 9 2008Hi, I need to convert rows to columns.
I have table with one column in it with unknown number of rows and in the result set I would like to get same number of columns.
For example:
Table TEST with column COL1, number of rows unknown
COL1
row1
row2
row3
...
rowN
Result set should look like this:
COL1 COL2 COL3 ... COLN
row1 row2 row3 ... rowN