如果我有这样的数据
"","",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
...
如上所述,[第2列]是包含应该是标题行的列,第3列到第40列包含应该是行值的列,选择哪些列并设置为通过UNPIVOT执行期望的换位?
或者UNPIVOT甚至不是我想要的东西?