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 |
|
kvishnuprasad
Starting Member
13 Posts |
Posted - 2008-07-16 : 17:30:58
|
| HiI have table like thisTable name StudentName subject marksx cc 22x rr 18x uu 51y cc 11y rr 12y uu 14z kk 12z ll 14I want to write a query to see the results in this wayx ;22;18;51;y ;11;12;14;z :12;14;help me in getting this!!!!!I want to do this because i want to move the complete data ofX ie (;22;18;51;) different table.Is this possible if yes let me know , that would be a great helpRegards,Vishnu |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-07-16 : 17:40:44
|
Use Cross Apply if you are on SQL Server 2005 or any other concatenating function available here at SQLTeam. E 12°55'05.25"N 56°04'39.16" |
 |
|
|
kvishnuprasad
Starting Member
13 Posts |
Posted - 2008-07-16 : 18:08:38
|
| i dint get u |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-07-17 : 05:12:29
|
| http://www.projectdmx.com/tsql/rowconcatenate.aspx |
 |
|
|
|
|
|