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 |
|
Rheinhardt
Yak Posting Veteran
66 Posts |
Posted - 2009-06-03 : 03:10:37
|
| Hi,How do I Create a Cross Tab query in SQl Server?Thanks |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-03 : 03:13:22
|
If you are using SQL Server 2005, you can try the PIVOT keyword. E 12°55'05.63"N 56°04'39.26" |
 |
|
|
Rheinhardt
Yak Posting Veteran
66 Posts |
Posted - 2009-06-03 : 03:18:03
|
| Can you maybe ellaborate a bit more...would really aprreciate it.Thanks Peso! |
 |
|
|
Rheinhardt
Yak Posting Veteran
66 Posts |
Posted - 2009-06-03 : 03:24:03
|
| Example:CurrentItem Date Quantity12 12/06/2009 20013 13/07/2009 150We want:Item 12/06/2009 13/07/200912 200 13 150We want SQL to pick up the headings of the dates automatically from the normalized data.Thanks |
 |
|
|
Rheinhardt
Yak Posting Veteran
66 Posts |
Posted - 2009-06-03 : 03:26:54
|
| ...Item 12 Quantity of 200 under the respective Date (12/06/2009) and Item 13 quantity 150 under it's respective date (13/07/2009) |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
Rheinhardt
Yak Posting Veteran
66 Posts |
Posted - 2009-06-03 : 04:06:42
|
| Thanks |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|
|