Click here to Skip to main content
15,886,813 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Division	 SalesOfficeDescr.	ValueBeforeTAX
30	         Vijayawada	       2134
10	         Ahmedabad	       339.5
10	         Bangalore	       2160
20	         Bangalore	       66666.6
10	         Kochi	               1150


the above data i want see as

SalesOfficeDescr.   10            20          30            Grand Total
Ahmedabad           339.5                                   339.5
Bangalore           2160         66666.6                     68826.6
Kochi              1150                                       1150
Vijayawada                                    2134            2134
Grand Total         3649.5      66666.6       2134             72450.1
Posted
Updated 30-Aug-13 1:59am
v3
Comments
Thanks7872 30-Aug-13 7:38am    
See it. Dntwry.... Continue.....

Since you didn't ask any question, it is difficult to give you a better answer.

I strongly recommend you to read:
How to ask a question[^] and What have you tried?[^]


P.S. Written as solution to avoid this "question" to be in the unanswered list
 
Share this answer
 
I would add to the first (perfectly valid) solution of Nelek this link :

SQL pivot table[^]

which will lead you to about 762,000 results on this topic.

Good reading!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900