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
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
What are expressions?
How do I write a sql query in pgadmin 4?
Is join an inner join?
name 3 ways to get an accurate count of the number of records in a table? : Sql dba
What is composite data type in pl sql?
How does a covering index work?
what is column? : Sql dba
discuss about myisam index statistics collection. : Sql dba
What does the argument [or replace] do?
Which one is better sql or oracle?
What are the three pl sql block types?
What is forward declaration in pl sql?
Can 2 queries be executed simultaneously in a distributed database system?
Which join is like inner join?