How to swap the data of two columns in a table. both the
columns containing varchar values.
Answer Posted / san
create table san(empid int,empname varchar(10))
insert into san values(1'san')
update san set empid=empname,empname=empid
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Explain what is sql server english query?
What is an expensive query?
What are the methods used to protect against sql injection attack?
How to sort query output in descending order in ms sql server?
What is a hint?
can an order by clause be used in a creation of a view?
What are rows and columns?
What is the latest version of microsoft sql server?
List out some of the requirements to set up a sql server failover cluster?
What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas
What are the elements of dbms?
Explain a checkpoint?
What is sql server schema compare? How we can compare two database schemas?
What is relationship? What number of sorts of relationship are there?
Explain subquery and state its properties?