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 |
|
nregular
Starting Member
3 Posts |
Posted - 2007-11-14 : 01:37:41
|
| I have a question regarding sql.. can SQL server tranfer data from Row to Columns.Example:i have a transmittal or submissionDrawing Number Transmittal No. Transmittal Date001 001 May 01, 2007001 002 May 10, 2007002 003 May 28, 2007001 003 May 28, 2007Should be:Dwg /XTML/ Date / XTML /Date /XTML /Date001 /001/ May 01/ 002 / May 10 /003 / May 28i have a problem this for almost 6 months. pls help me....ThxNino Aries RegularForssman Pacific Corporation |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-11-14 : 01:52:54
|
check out PIVOT in SQL Server 2005 provided that you are using 2005 KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
nregular
Starting Member
3 Posts |
Posted - 2007-11-14 : 01:58:06
|
what pivot - how can i see pivot in SQLTHX |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
nregular
Starting Member
3 Posts |
Posted - 2007-11-14 : 03:04:39
|
| thx to all reply.. thx to all SQL Developer..My question is automatic .. not to assign values automatic in rows to column... it is possible to use array in sql |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-11-14 : 03:30:34
|
Yes, it is called PIVOT. E 12°55'05.25"N 56°04'39.16" |
 |
|
|
|
|
|