Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Orginal table

Emp_No |   Emp_Name  | EmpAge |
   1   |      Ruk    |   25  |    
   2   |      riya   |   17   |   
   3   |     robert  |   34   |  



Required table

NoOfOrginalTableColumns | OrginalTableColumnNames | Row_1 | Row_2 |     Row_3  |
          1             |           Emp_No        |     1 |     2 |       3    |
          2             |           Emp_Name      |  Ruk  |   Riya|    Robert  |
          3             |           EmpAge        |    25 |     17|      34    |


Please Help.

Thanks in Advance.

[edit]Code block added - OriginalGriff[/edit]
Posted
Updated 26-Mar-15 23:03pm
v3

1 solution

 
Share this answer
 
Comments
kavitha3 27-Mar-15 3:56am    
Hi Thanks for Reply .
i have gone though the above URL .
i don't want to use aggregate function in it.
Please help...

just making all rows in a column.
OriginalGriff 27-Mar-15 4:17am    
You don't get a choice.
If you want to rotate rows to columns, you need to use PIVOT
kavitha3 27-Mar-15 4:37am    
Please ,I have a request
can u please suggest an answer for above table to get a solution. please

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