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 |
|
khanewal
Starting Member
33 Posts |
Posted - 2010-09-06 : 22:24:47
|
| HI Friends,I have this data DocID object1 A1 A2 H3 A1 HRequired outputDocID ObjectA ObjectH Total1 3 1 42 0 1 13 1 0 1Total 4 2 6can you please tell me how I can produce this kind of output in SQL |
|
|
Sachin.Nand
2937 Posts |
Posted - 2010-09-07 : 00:37:48
|
| You can use the PIVOT operator.Limitations live only in our minds. But if we use our imaginations, our possibilities become limitless. PBUH |
 |
|
|
khanewal
Starting Member
33 Posts |
Posted - 2010-09-07 : 01:40:20
|
| Thanks its done, and also can you please let me know if I can create new run time column to add total of object A and object B |
 |
|
|
|
|
|