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
When would you use a before or after trigger?
what is the Ticketing tool used in Wipro technologies at Bangalore...???
what's the information that can be stored inside a bit column? : Sql server database administration
What is faster join or union?
how to determine the service pack currently installed on sql server? : Sql server database administration
What is the use of custom fields in report?
What happens if you insert a duplicate key for the primary key column in ms sql server?
Is it true that rules do not apply to data already existing in a database at the time the rule is created?
how to take backup bcp out for a column in table in sql server?
Explain error and transaction handling in sql server?
How to use subqueries with the in operators in ms sql server?
How to create function with parameter in sql server?
What are translations and its use? : sql server analysis services, ssas
You have to store user responses of ‘yes’ and ‘no’ what kind of data type is best suited for this task?
What is Dependency Injection and provide example?