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 / avi007
select A as "B",B AS "A" from T;
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
what are all the different types of indexes? : Sql dba
how would concatenate strings in mysql? : Sql dba
What are the different types of dbmss?
Show code of a cursor for loop.
Can we group by two columns in sql?
What are the benefits of pl sql?
What is sp_helptext?
how would you get the current date in mysql? : Sql dba
How to fix oracle error ora-00942: table or view does not exist
how to fetch common records from two tables? : Sql dba
Why is %isopen always false for an implicit cursor?
What is a composite primary key?
How do I run a pl sql procedure in sql developer?
Which are the different case manipulation functions in sql?
What is the difference between in and between in sql?