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
What is normalization according to you and explain its different levels?
Why we use functions in sql server?
What is the difference between createstatement and preparedstatement?
Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many
How to use column default values in insert statements in ms sql server?
What is similarity and difference between truncate and delete in sql?
What is a primary key?
What is the need for indexing?
Which sql server is best?
How can a database be repaired?
What is ssl in sql server?
How to connect Azure federated root database and apply federation in entity framework?
What is ddl and dml commands?
What is the ‘fillfactor’?
How do I view a trc file?