How to display the date by column wise
Table1
ID Date Value
001 01/01/2012 100
001 02/01/2012 200
...
...
001 31/01/2012 250
002 01/01/2012 050
002 02/01/2012 100
...
002 31/01/2012 075
....
I want to display the value row by date wise row group by id riw
Expected output
ID 01/01/2012 02/01/2012 ... 31/01/2012
001 100 200 .... 250
002 050 100 .... 075
.....
How to do this with a SQL query?
Try this
SQL2000 version
Or