what is the easiest/simplest way to transpose/pivot this data? (using sql server 2008)
create table #tmpA(fld1 varchar(10))
insert into #tmpA
select 'a' union all
select 'b' union all
select 'c' union all
select 'd' union all
select 'e'
select * from #tmpA
--output
fld1
a
b
c
d
e
I need the output to look like this
1 2 3 4 5 --arbitrary column names - just using numbers
a b c d e
or the output could look like this
1 2 3 4 5
a, b, c, d, e, --I added a ',' character to each value
Rich P