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 |
|
madlo
Starting Member
41 Posts |
Posted - 2009-03-13 : 02:25:02
|
| Hi,I am writing a stored proc that I need to use to create a multiline file for meit needs to return rows of columns off of a sub select statement.for exampleSelect ?????FROM(--Multi table joinselect Cola,Colb,Colc,Cold,Cole,Colf,Colg fromtab1,tabx )MyTablemust return me1,a2,b3,c4,d5,e6,f7,gso my data isa1,b1,c1a2,b2,c2...must be returned as a1b1c1a2b2c2... |
|
|
bklr
Master Smack Fu Yak Hacker
1693 Posts |
Posted - 2009-03-13 : 02:27:03
|
| unpivot function |
 |
|
|
|
|
|
|
|