Click here to Skip to main content
15,663,632 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a table with few columns and rows.

Master Contract Number con Net Revenues Deployed Payroll Net (Loan)/Borrow Payroll Total Payroll Total Subcontractor Costs
9940012364 0 0 0 0 0
9940040036 2827.58127 81.4233 1551.70266 1633.12596 92.07216
9940052615 1624.96347 120.98094 218.0292 339.01014 244.44309
9940071895 0 0.78807 -0.68328 0.10479 0
9940117981 640.27911 0 213.83937 213.83937 7.85265
9940146065 0 0 0 0 0


so here now the rows has to become columns and columns has to become rows dynamically..
Something like Transpose.
Please help me.

Thanks in advance.
Posted
Updated 29-Oct-15 19:41pm
v2

1 solution

Use PIVOT[^]

-KR
 
Share this answer
 
Comments
Member 11827873 30-Oct-15 5:41am    
But here i also want the values to change....

i want the transpose of the table

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