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
What is the difference between createstatement and preparedstatement?
Write a sql query to display the current date?
What is delete query?
What is a cube? : sql server analysis services, ssas
What is 4nf in normalization form?
How to store and query spatial data?
Explain logical operators in sql server?
do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration
Does union all remove duplicates?
What is mapping schema?
What are the various Operating system files that every SQL server 2005 database has and what is the purpose.
Explain try...catch with sql server?
Where to find ntwdblib.dll version 2000.80.194.0?
Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?
What is “asynchronous” communication in sql server service broker?