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
 Transact-SQL (2000)
 Pivot in SQL 2000

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-03-29 : 08:52:02
thomas writes "Hi,

I have a table with the following columns [col1,col2,col3,col4]

My requirement is that when I execute the select statement My result set would have to be as

[
col1

col2

col3

col4
]

Please answer as early as possible.

Regards,
Thomas Alexander"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-29 : 09:00:03
>>Please answer as early as possible.

Are you going to interview today?

Refer the split function
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=50648

or

Select col1 from table
union all
Select col2 from table
union all
.
.


Madhivanan

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

- Advertisement -