How to swap the data of two columns in a table. both the
columns containing varchar values.

Answer Posted / dinesh

select menu from (select m_name as menu from m_master) a
union select m_name as menu from db2 .dbo.m_master

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trigger in salesforce?

575


Who developed sql server?

604


What can be used instead of trigger?

706


What is temporary table in sql server? Why we use temp table?

600


Define the one-to-one relationship while designing tables.

593






Can a cursor be updated? If yes, how you can protect which columns are updated?

613


How to identify current user in ssrs report?

287


How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?

1656


What is meant by dirty read?

637


when you create a database how is it stored? : Sql server database administration

576


You have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem?

657


Explain how to maintain a fill factor in existing indexes?

626


What are subqueries in sql server? Explain its properties.

627


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

694


What is snapshot parameter in ssrs?

116