Transpose or unpivot every other column
问题 Basically what I am trying to do is transpose every other column to a row with the following columns data beside it. The source can have only two columns up to one-thousand and millions of rows. I am only doing this on a per-row basis. I have tried doing a "UNION ALL" however this is incredibly slow when dealing with hundreds of columns in a large table. Possible solutions are using UNPIVOT although every example I can find is doing something different from what I want. Example: Before Query