Forums

This topic is locked

Turn Row into column(SQL Server)

Posted 12 Dec 2003 17:08:34
1
has voted
12 Dec 2003 17:08:34 Sokac / posted:
I have table named priacc with 100 columns.
Column names are a001,a002,a003...a100.
How to create view so that this row become column named "desc". Result shoud be:


desc
-------------------
value from a001
value from a002
value from a003
value from a004
.
.
.
value from a100

Table is always filtered by id which is in a100 column so I always have only one row as result.

Edited by - Pere on 14 Dec 2003 11:37:20

Reply to this topic