UNPIVOT
SQL Server では、次の関数を適用できます。
select value, col
from yourtable
unpivot
(
value
for col in ([Donna F. Carreras], [Alexander J. Deborde],
[John Ford], [Marjorie M. Lee], [Crystal C Zhu])
) un
デモで SQL Fiddle を参照してください
UNION ALL
または、クエリを使用できます。
select [Donna F. Carreras] value, 'Donna F. Carreras' col
from yourtable
union all
select [Alexander J. Deborde] value, 'Alexander J. Deborde' col
from yourtable
union all
select [John Ford] value, 'John Ford' col
from yourtable
union all
select [Marjorie M. Lee] value, 'Marjorie M. Lee' col
from yourtable
union all
select [Crystal C Zhu] value, 'Crystal C Zhu' col
from yourtable
デモで SQL Fiddle を参照してください
どちらも同じ結果になります。
| VALUE | COL |
--------------------------------
| 176 | Donna F. Carreras |
| 246 | Alexander J. Deborde |
| 312 | John Ford |
| 502 | Marjorie M. Lee |
| 19969 | Crystal C Zhu |