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 |
|
NeilG
Aged Yak Warrior
530 Posts |
Posted - 2009-11-16 : 05:35:01
|
| Hopefully somone can help on this one, we have a table (see below)SELECT [Type] [Employee], Sales_One, Sales_Two, Sales_ThreeFROM SalesDataWithin this table, there are three types 'Order', 'Proposal','Possible'Where tying to get the infomation to display likeEmployee, 'Order_Sum','Proposal_Sum','Possible_Sum'John , 10 , 1 ,4David, 11, 2 ,4I've looked at pivot union etc but i just can't seem to figure out how to do this, can anyone help-----------------------------------------------Learning something new on SQL Server everyday. |
|
|
NeilG
Aged Yak Warrior
530 Posts |
Posted - 2009-11-16 : 06:51:29
|
| bump |
 |
|
|
bklr
Master Smack Fu Yak Hacker
1693 Posts |
|
|
NeilG
Aged Yak Warrior
530 Posts |
Posted - 2009-11-16 : 11:35:38
|
| Thanks I think i've cracked it using the PIVOT function |
 |
|
|
|
|
|
|
|