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
What is set serveroutput on?
Why we use cross join?
Advantages and disadvantages of stored procedure?
how to shut down the server with 'mysqladmin'? : Sql dba
What are expressions?
Define a temp table?
Is microsoft sql free?
What are inbuilt functions in sql?
What is the difference between joins?
What is pl sql architecture?
What is a sql statement?
Are pl sql variables case sensitive?
which command using query analyzer will give you the version of sql server and operating system? : Sql dba
what is row? : Sql dba
How do I create a sql script?