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
Is sql open source?
What are the types of records?
What does the base_object_type column shows in the user.triggers data dictionary view?
What is the primary use of normalization?
Why is partition used in sql?
What are all the ddl commands?
Is sqlite free?
What is sql in java?
What are the types of join and explain each?
What is row_number () in sql?
what is msql? : Sql dba
Can we rollback after truncate?
name 3 ways to get an accurate count of the number of records in a table? : Sql dba
What is the meaning of disabling a trigger?
Why is sql better than hql?