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
 Other Forums
 Other Topics
 Transpose using a sql - rows to column

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-11-13 : 08:46:09
Nitin writes "How can I transpose the output of a SQL. Like if I am selecting one single column from a table and want to get the values in a single row (transposing rows to column). Can this be done using a single SQL? I don't want to use the front end like creating a crosstab. I am working on SYBASE ASE 12.5.

Thanks"

nr
SQLTeam MVY

12543 Posts

Posted - 2002-11-13 : 08:54:44
Do a search for crosstab and you should see an article on it.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -