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 |
|
bfeucht
Starting Member
1 Post |
Posted - 2012-08-15 : 16:29:41
|
| I am trying to write a sql statement in MS SQL Express that turns a flat table into a pivot table.Sample data:project id Date Amount1 10/1/2012 10 1 11/1/2012 10 1 12/1/2012 10 1 1/1/2013 10 1 1/2/2013 101 1/3/2013 101 1/4/2013 101 1/5/2013 101 1/6/2013 101 1/7/2013 101 1/8/2013 10And Returns this;Project id 10/1/2012 11/1/2012 12/1/2012 1/1/2013 2/1/2013 3/1/2013 1 10 1 101 101 101 101 10The Dates are dynmanicsdsdsd |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|