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
Can we use custom code in ssrs?
What is sql injection? How to protect against sql injection attack?
How to create stored procedures with parameters in ms sql server?
How to add an address record into adventureworkslt?
How to read data in a table with "select" statements?
Can a table have 2 foreign keys?
What is nolock?
How to change parameter value inside the report?
Define Business Edition in SQL Azure?
what changed between the previous version of sql server and the current version? : Sql server database administration
How to loop through result set objects using odbc_fetch_row()?
How to create a dynamic cursor with the dynamic option?
What is report subscription?
What are the different methods available under sqlcommand class to access the data?
What do you mean by subquery?