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
Does sql require a server?
Which tcp/ip port does sql server run?
what are the security recommendations while using mysql? : Sql dba
how to use myisamchk to check or repair myisam tables? : Sql dba
How do I edit a trigger in sql developer?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
Is it possible to link two groups inside a cross products after the cross products group has been created?
Define a temp table?
Differentiate pl/sql and sql?
Can primary key be changed?
How do you optimize a stored procedure in sql?
how to select first 5 records from a table? : Sql dba
In a distributed database system, can we execute two queries simultaneously?
What is Difference Between Unique and Primary Key Constraints?
Is sql better than access?