there is a table having two columns no and name
and the data is
1 A
2 B
3 C
write a query that will result a horizontal output
A,B,C
Answer Posted / miller
try using Pivot. for details follow the link
http://msdn.microsoft.com/en-us/library/ms177410.aspx link
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is unpivot?
What do you do in data exploration
Why I am getting this error when renaming a database in ms sql server?
How to create a simple user defined function in ms sql server?
Where the sql logs gets stored?
What is the optimization being performed in oracle and SQL Server?
How to insert multiple rows with a subquery?
What do you mean by table and field in sql?
Can a table be created inside a trigger?
What is row_number function?
Explain SSRS Architecture?
What is SQL Azure Fabric?
How to locate and take substrings with charindex() and substring() functions?
How will you go about resolving deadlocks?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A