If I have a table T with 4 rows & 2 columns A & B. A has
values 1,2,3,4. and B has 10,20,30,40. Write an Update SQL
query which can Swap the values of A & B for all records.
(Do not use a sub-query)

Answer Posted / amit

UPDATE T
SET A = B, ENVDOR_NUMBERB = A

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a heap in sql?

522


How exception handling is done in advance pl/sql?

491


Can I call a procedure inside a function?

543


what is primary key? : Sql dba

508


What is dynamic query?

535






What is partition by in sql?

567


How do I run a pl sql procedure in sql developer?

506


Define a temp table?

549


Is the primary key an index?

591


What version is sql?

548


Why partition by is used in sql?

549


Does sql support programming?

545


What is nvarchar in sql?

518


What is nosql db?

534


Can we use loop in sql?

529