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
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
what is offset-fetch filter in tsql? : Transact sql
Is inner join faster than left join?
What is optimistic concurrency control? : Transact sql
How do you use a while loop in pl sql?
Is sql developer case sensitive?
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
Do we need to create index on primary key?
Is vs as in pl sql?
What is the difference between syntax error and runtime error?
Is sql a programming?
Write a sql query to find the names of employees that begin with ‘a’?
Can you join views in sql?
What is rownum in sql?
How to combine two stored procedures in sql?