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 / b
Select case when 1 then 'A'
when 2 then 'B'
when 3 then 'C' end as Name from tablename
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How to update a field in SQL after ALTERING a row?
Write a program to fetch first 10 records from a file?
What is filestream?
What does COMMIT command do?
What is the difference between Normalization and De-normalization?
What are the properties and different types of sub-queries?
Can we add a cpu to sql server?
Can I save my report as html, excel or word? : sql server management studio
What are sub reports and how to create them?
What are the restraints imposed on the table design by a merge replication?
What are the types of table?
Does view occupy space?
What is the difference between upgrade and migration in sql server?
How to enter date and time literals in ms sql server?
Explain an incremental backup?