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.
Author |
Topic |
sqlserver_newbee
Starting Member
11 Posts |
Posted - 2007-10-09 : 15:01:14
|
Hi all,I have a table that appears as followingres_id | ques_id | ans_id=========================50 | 101 | 230050 | 101 | 230150 | 102 | 240855 | 101 | 230055 | 105 | 245055 | 105 | 2451I want to transform it so that I get results as -res_id | ques_id | ans_id=========================50 | 101 | 2300, 230150 | 102 | 240855 | 101 | 230055 | 105 | 2450, 2451Duplicate Response Id and Question ID should have comma separated answer ids in same row.Thanks in advance for all the help! |
|
Kristen
Test
22859 Posts |
Posted - 2007-10-09 : 15:08:47
|
See: See: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Pivot+table2,Pivot+table,Dynamic+CrossTabs,Dynamic+Cross-Tabs |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|