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 |
naveendkt
Starting Member
5 Posts |
Posted - 2011-08-30 : 13:42:29
|
I got a table values as bellow. CREATE TABLE #temp3 (ID INT,Date DATETIME,totalcount INT)id date totalcount5 2011-07-30 25 2011-07-16 15 2011-07-23 277 2011-07-16 177 2011-08-28 177 2011-07-10 1152 2011-07-03 1And I want the output as id 2011-07-30 2011-07-16 2011-07-23 2011-08-28 2011-07-10 2011-07-035 2 0 0 0 0 077 0 1 0 1 1 0152 0 0 0 0 0 1FYI: The rows in #temp3 is dynamic. The dates are not static. I am using Microsoft SQL Server 2000 - (Build 3790: Service Pack 2) Can any one help pleaseNaveen |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|