If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > transpose row to column with concatenation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Jan 2013
Posts: 1
Question transpose row to column with concatenation

Hi,

I have table like below

PARENT NAME
-------- ------
ABSMBS A1
ABSMBS A2
ABSMBS A3
BNDS B1
BNDS B2
BSB C1
BSB C2
DMA D1

and i want the data to be shown as below but using on SQL query and not using cursors. I am using Sybase 15. Is this possible?

PARENT NAME
-------- ------
ABSMBS A1,A2,A3
BNDS B1,B2
BSB C1,C2
DMA D1
Reply With Quote
Reply

Tags
transpose with concat

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On