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
Can you please explain the difference between primary keys and foreign keys?
How to connect a database with sql express.?
What are the properties of primary key?
Different types of keys in SQL?
How do we synchronize On-Premise SQL server with SQL Azure?
List the different types of joins?
What is the purpose of sql profiler in sql server? : sql server database administration
What is query parameter in ssrs?
What is store procedure?
Explain about unique identifier data type in sql server?
What do you understand by user-defined function in the sql server?
How many servers can we create in a single subscription?
What is a unique key constraint?
can an order by clause be used in a creation of a view?
If you want to send some data from access database to sql server database. What are different component of ssis will you use?