Pivots, man...I\'m just missing it. Maybe it\'s because I\'m not doing an aggregate. Heck, maybe a pivot isn\'t the way to do this. It feels like it should be simple, but it\'s
select [1] as field1,
[2] as field2
from
(
select col1, row_number() Over(order by col1) rn
from yourtable
) src
pivot
(
max(col1)
for rn in ([1], [2])
) piv