Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 sql puzzle

Author  Topic 

soorajtnpki
Posting Yak Master

231 Posts

Posted - 2008-11-06 : 04:03:50
hi all,
look my temp table below and my required output

create table #TestTable (
ProdID varchar(5),
ProdDesc varchar(256)
);

insert into #TestTable (
ProdID,
ProdDesc
)
select 'Prod1', 'Description 1' union all
select 'Prod1', 'Description 2' union all
select 'Prod2', 'Description 1' union all
select 'Prod3', 'Description 1' union all
select 'Prod3', 'Description 2' union all
select 'Prod3', 'Description 3' union all
select 'Prod3', 'Description 4';


output:

ProdID Desc

prod1 Description 1,Description 2
prod2 Description 1
prod3 Description 1,Description 2,Description 3,Description 4

can u solve this in sql 2000 ..
ok thanx

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-11-06 : 04:40:57
I am sorry to inform you I can't help you since Google is down.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-11-06 : 05:16:11
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53293

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -