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)
 Query help

Author  Topic 

zubairmasoodi
Starting Member

35 Posts

Posted - 2007-05-25 : 07:19:32
HI
I NEED AN OUTPUT IN THIS FORMAT

Col1 Col2
1 4
2 6,8
3 10
4 11,12,13,14,15,16


SAMPE DATA IS BELOW

Col1 Col2
1 4
2 6
2 8
2 9
3 10
4 11
4 12
4 13
4 14
4 15
4 16

How can i write a query for this
Thanks


With regards
Zubair Masoodi
(Every day's a school day)

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-05-25 : 07:22:55
See this: [url]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53293[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-05-26 : 01:23:26
quote:
Originally posted by harsh_athalye

See this: [url]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53293[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"


Good found Harsh

Madhivanan

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

- Advertisement -