如果我有这样的数据
"","",WAREHOUSE ID,1,2,3,4,5...
"","",WAREHOUSE CODE,BOS,HOU,LAX,NYC,CHI...
"","",WAREHOUSE NAME,BOSTON,HOUSTON,LOS ANGELES,NEW YORK CITY,CHICAGO...
但是想这样改造
WAREHOUSE ID, WAREHOUSE CODE, WAREHOUSE NAME
1,BOS,BOSTON
2,HOU,HOUSTON
3,LAX,LOS ANGELES
...
如果如上所述,[Column 2] 是包含应该是标题行的列,并且第 3 到 40 列包含应该是行值的列,则选择哪些列并设置为通过 UNPIVOT 执行所需的转置?
还是 UNPIVOT 甚至不是我想要的?