row convert to column in sql 2008
- by jay
create table #cusphone(cusid int,cusph1 int)
insert into #cusphone values(1,48509)
insert into #cusphone values(1,48508)
insert into #cusphone values(1,48507)
insert into #cusphone values(2,48100)
out put
1 48509 48508 48507
2 48100 null null