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 many triggers are possible per table?
What are the differences between DDL, DML and DCL in SQL?
How to rename an existing table with the "sp_rename" stored procedure in ms sql server?
What do we need queues in sql service broker?
What is difference between join and natural join?
What are the properties of the transaction?
How do you debug a procedure in sql server?
What are commonly used odbc functions in php?
How will you optimize a stored procedure optimization?
what's sql server? : Sql server database administration
Explain table valued parameters in sql server? Why tvp used?
what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration
Explain an incremental backup?
What are the differences between sql server and mysql.
What is 'write-ahead log' in sql server 2000 ?