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 |
kumarvashanth
Starting Member
4 Posts |
Posted - 2009-04-29 : 10:51:58
|
In my table i am having three columns named this is my current table structurePID VID COM 1 1 neckpain 1 1 backpain 1 1 headache 2 2 throatpain 3 3 neckpainMy ouput should like thisPID VID COM 1 1 neckpain,backpain,headache 2 2 throatpain 3 3 neckpainI required a query for this table layoutIf PID & VID are same for two records then COM value should be in single row separated bby Comma I am using SSRS to execute this table and i am new to SSRS, so stright away in am passing table to SSRS If anyone knows this kindly help me in this, its an urgent requirementmillions of thanks in advancethanks vashanth |
|
Qualis
Posting Yak Master
145 Posts |
Posted - 2009-04-29 : 11:20:12
|
Look up pivoting with SQL Server 2005 |
|
|
kumarvashanth
Starting Member
4 Posts |
Posted - 2009-05-04 : 01:18:55
|
quote: Originally posted by Qualis Look up pivoting with SQL Server 2005
thanks for replyi am not sure on pivoting concept i have to connect this above required layoutwith another view by using VID fieldwill you able to give the query for thisthanks |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-05-04 : 02:54:36
|
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254MadhivananFailing to plan is Planning to fail |
|
|
|
|
|