Swadhin Ray
asked on
SQL query
Hello Experts ,
I have a table test , which has values as like below:
Now I want to get the result as below on SQL Server 2008 version without using pivot:
I have a table test , which has values as like below:
select * from test;
col1 col2
1 AA
2 BB
Now I want to get the result as below on SQL Server 2008 version without using pivot:
column_name data1 data2
col1 1 2
col2 AA BB
SQL wont support that in any way that is even moderately efficient. Can you process the data outside of SQL?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I wonder also about such a requirement, and can confirm that with "sql", you cannot do this.
in ms excel, it would be a "transpose" function ...
in ms excel, it would be a "transpose" function ...
ASKER
thanks