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 are the different type of normalization? : Sql dba
Show code of a cursor for loop.
What is a temp table?
Is sql dba a good career? : SQL DBA
Explain aggregate functions are available there in sql?
what are date and time intervals? : Sql dba
What is a crud api?
what are the drivers in mysql? : Sql dba
What is normalization in sql?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
Why is %isopen always false for an implicit cursor?
How many functions are there in sql?
Do we need commit after truncate?
Which one is better sql or oracle?
What is rownum and rowid?